aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-08-26 14:53:45 +0000
committerPedro Alves <palves@redhat.com>2010-08-26 14:53:45 +0000
commit2ed91d1b8bf1075a9d827094f8cf3f1035b2fba4 (patch)
tree884ae11ab93bc12fc2cccf8e5e0f653f0b58ca59 /gdb/testsuite/gdb.mi
parentcdb21a0a5b4c8b3a437f515879767e24bf38e6e0 (diff)
downloadgdb-2ed91d1b8bf1075a9d827094f8cf3f1035b2fba4.zip
gdb-2ed91d1b8bf1075a9d827094f8cf3f1035b2fba4.tar.gz
gdb-2ed91d1b8bf1075a9d827094f8cf3f1035b2fba4.tar.bz2
* gdb.mi/mi-nsmoribund.exp: Revert back to send_gdb/gdb_expect in
one test.
Diffstat (limited to 'gdb/testsuite/gdb.mi')
-rw-r--r--gdb/testsuite/gdb.mi/mi-nsmoribund.exp22
1 files changed, 14 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp b/gdb/testsuite/gdb.mi/mi-nsmoribund.exp
index 0eaad24..293d06c 100644
--- a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp
+++ b/gdb/testsuite/gdb.mi/mi-nsmoribund.exp
@@ -121,15 +121,21 @@ mi_check_thread_states \
# goes wrong with moribund locations support or displaced stepping (or
# a target bug if it can step over breakpoints itself), a spurious
# SIGTRAP/SIGSEGV can come at any time after deleting the breakpoint.
+# Note that this causes multiple prompts to appear before the output
+# we are interested in, so we can't use mi_gdb_test or
+# gdb_test_multiple (or an MI equivalent)
-gdb_test_multiple "102-break-delete\nprint done = 1\n103-exec-continue --all" \
- "resume all, program exited normally" {
- -re "\\*stopped,reason=\"exited-normally\"" {
- pass "resume all, program exited normally"
- }
- -re "\\*stopped" {
- fail "unexpected stop"
- }
+send_gdb "102-break-delete\n"
+send_gdb "print done = 1\n"
+send_gdb "103-exec-continue --all\n"
+
+gdb_expect {
+ -re "\\*stopped,reason=\"exited-normally\"" {
+ pass "resume all, program exited normally"
}
+ timeout {
+ fail "resume all, waiting for program exit (timeout)"
+ }
+}
mi_gdb_exit