From 833b0ca77688f17688de0a8cd100ba79bf8c6260 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Wed, 22 Jun 2011 16:12:46 +0000 Subject: Fix races in gdb.mi/mi-var-display.exp. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.mi/mi-var-display.exp | 8 ++------ 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'gdb/testsuite') diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 57e332f..1afa644 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-06-21 Marek Polacek + + * gdb.mi/mi-var-display.exp: Replace gdb_test_multiple with + mi_gdb_test. + 2011-06-20 Marek Polacek * gdb.mi/mi-nsintrall.exp: Replace gdb_test_multiple with mi_gdb_test. diff --git a/gdb/testsuite/gdb.mi/mi-var-display.exp b/gdb/testsuite/gdb.mi/mi-var-display.exp index e307ca4..ff27407 100644 --- a/gdb/testsuite/gdb.mi/mi-var-display.exp +++ b/gdb/testsuite/gdb.mi/mi-var-display.exp @@ -605,12 +605,8 @@ mi_gdb_test "-var-list-children anone" \ # Record fp - -gdb_test_multiple "p/x \$fp" "print FP register" { - -re ".*($hex).*\\^done\r\n$mi_gdb_prompt$" { - pass "print FP register" - set fp $expect_out(1,string) - } +if ![mi_gdb_test "p/x \$fp" ".*($hex).*\\^done" "print FP register"] { + set fp $expect_out(3,string) } mi_continue_to "incr_a" -- cgit v1.1