This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] gdb.mi/mi2-var-display.exp: fix racy test (PR testsuite/12649)


Replace gdb_test_multiple with mi_gdb_test.  This is the same patch as
this one:

	http://sourceware.org/ml/gdb-patches/2011-06/msg00284.html

Tested with both read{,1}.  OK to apply?

2011-06-22  Marek Polacek  <mpolacek@redhat.com>

        * gdb.mi/mi2-var-display.exp: Replace gdb_test_multiple with mi_gdb_test.

--- gdb/gdb/testsuite/gdb.mi/mi2-var-display.exp.mp     2011-06-22 13:34:40.244575260 +0200
+++ gdb/gdb/testsuite/gdb.mi/mi2-var-display.exp        2011-06-22 13:57:25.476481141 +0200
@@ -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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]