aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-12-26 11:24:55 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-12-26 11:24:55 +0000
commite809353af1682550b6f19bdd0fe4a3628d7380cd (patch)
treeaf0755ff6ecf0c6672f79c7d178d388ee56d4d18 /gdb/testsuite/gdb.mi
parent15daccb2f784ba59e7e220e2700df78bd987bb41 (diff)
downloadgdb-e809353af1682550b6f19bdd0fe4a3628d7380cd.zip
gdb-e809353af1682550b6f19bdd0fe4a3628d7380cd.tar.gz
gdb-e809353af1682550b6f19bdd0fe4a3628d7380cd.tar.bz2
gdb/testsuite/
Fix double send_gdb leading to racy FAILs. * gdb.base/break.exp (set silent break bp_location1): Replace 3x send_gdb and gdb_expect by gdb_test. * gdb.base/fileio.exp: Replace 2x send_gdb by gdb_exit and sleep. * gdb.base/foll-vfork.exp (vfork_and_exec_child_follow_to_main_bp) (vfork_and_exec_child_follow_through_step): Use gdb_test_no_output instead of send_gdb. Twice. * gdb.base/sepdebug.exp (set silent break bp_location1): Replace 3x send_gdb and gdb_expect by gdb_test. * gdb.mi/mi-nsmoribund.exp: Replace 3x send_gdb by mi_gdb_test.
Diffstat (limited to 'gdb/testsuite/gdb.mi')
-rw-r--r--gdb/testsuite/gdb.mi/mi-nsmoribund.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp b/gdb/testsuite/gdb.mi/mi-nsmoribund.exp
index 286004b..10b04ba 100644
--- a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp
+++ b/gdb/testsuite/gdb.mi/mi-nsmoribund.exp
@@ -118,9 +118,9 @@ mi_check_thread_states \
# we are interested in, so we can't use mi_gdb_test or
# gdb_test_multiple (or an MI equivalent)
-send_gdb "102-break-delete\n"
-send_gdb "print done = 1\n"
-send_gdb "103-exec-continue --all\n"
+mi_gdb_test "102-break-delete" "102\\^done.*"
+mi_gdb_test "print done = 1" { = 1"}
+mi_gdb_test "103-exec-continue --all" "\[^\n\]*\r\n$running_re"
gdb_expect {
-re "\\*stopped,reason=\"exited-normally\"" {