* gdb.mi/mi-nsmoribund.exp: Revert back to send_gdb/gdb_expect in
authorPedro Alves <palves@redhat.com>
Thu, 26 Aug 2010 14:53:45 +0000 (14:53 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 26 Aug 2010 14:53:45 +0000 (14:53 +0000)
one test.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-nsmoribund.exp

index adfa1a17725d12ce18f29fb46b4d1b05bca26d3a..a031053c5f0bbca4fd19106cff22330ced406823 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-26  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.mi/mi-nsmoribund.exp: Revert back to send_gdb/gdb_expect in
+       one test.
+
 2010-08-24  Doug Evans  <dje@google.com>
 
        PR symtab/11942
index 0eaad24e4f3d97919a6633d2e35ccaa265e00f97..293d06c2967cdb4b26baab918ffb6ba85bd39c2e 100644 (file)
@@ -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