aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi
diff options
context:
space:
mode:
authorMarek Polacek <mpolacek@sourceware.org>2011-06-22 16:12:46 +0000
committerMarek Polacek <mpolacek@sourceware.org>2011-06-22 16:12:46 +0000
commit833b0ca77688f17688de0a8cd100ba79bf8c6260 (patch)
treedf8653127dde7cb08ecdc63dba8ccad284af6ad2 /gdb/testsuite/gdb.mi
parent9ec0c9369070575764b746863bf9372f7cbf1d56 (diff)
downloadgdb-833b0ca77688f17688de0a8cd100ba79bf8c6260.zip
gdb-833b0ca77688f17688de0a8cd100ba79bf8c6260.tar.gz
gdb-833b0ca77688f17688de0a8cd100ba79bf8c6260.tar.bz2
Fix races in gdb.mi/mi-var-display.exp.
Diffstat (limited to 'gdb/testsuite/gdb.mi')
-rw-r--r--gdb/testsuite/gdb.mi/mi-var-display.exp8
1 files changed, 2 insertions, 6 deletions
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"