This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] gdb.mi/mi2-var-display.exp: fix racy test (PR testsuite/12649)
- From: Marek Polacek <mpolacek at redhat dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 22 Jun 2011 14:01:58 +0200
- Subject: [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"