From: Marek Polacek Date: Thu, 23 Jun 2011 09:51:11 +0000 (+0000) Subject: Fix races in mi2-var-display.exp. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9497469fbddef7bf2c3bfd6568735e537e9a09b0;p=binutils-gdb.git Fix races in mi2-var-display.exp. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8d07e4af6e4..d60370f1760 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-06-23 Marek Polacek + + * gdb.mi/mi2-var-display.exp: Replace gdb_test_multiple with + mi_gdb_test. + 2011-06-23 Marek Polacek * gdb.mi/mi2-return.exp: Replace gdb_test_multiple with mi_gdb_test. @@ -141,7 +146,7 @@ 2011-05-27 Marek Polacek - * gdb.mi/mi-nonstop.exp: Replace gdb_test_multiple with mi_gdb_test. + * gdb.mi/mi-nonstop.exp: Replace gdb_test_multiple with mi_gdb_test. 2011-05-27 Marek Polacek diff --git a/gdb/testsuite/gdb.mi/mi2-var-display.exp b/gdb/testsuite/gdb.mi/mi2-var-display.exp index 63906980282..828614b3757 100644 --- a/gdb/testsuite/gdb.mi/mi2-var-display.exp +++ b/gdb/testsuite/gdb.mi/mi2-var-display.exp @@ -604,12 +604,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"