* gdb.threads/pthreads.exp: Wait for output and delay
authorDaniel Jacobowitz <drow@false.org>
Mon, 1 Oct 2001 20:36:48 +0000 (20:36 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 1 Oct 2001 20:36:48 +0000 (20:36 +0000)
        before sending ^C.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/pthreads.exp

index de03bee..67cadf4 100644 (file)
@@ -1,5 +1,10 @@
 2001-10-01  Daniel Jacobowitz  <drow@mvista.com>
 
+       * gdb.threads/pthreads.exp: Wait for output and delay
+       before sending ^C.
+
+2001-10-01  Daniel Jacobowitz  <drow@mvista.com>
+
        * gdb.mi/mi-var-display.exp (continue to incr_a):  Recognize
        some incorrect output instead of timing out.
        * gdb.mi/mi-var-display.exp (continue to incr_a):  Likewise.
index e57583b..0703395 100644 (file)
@@ -248,6 +248,15 @@ proc check_control_c {} {
 
     # Send a continue followed by ^C to the process to stop it.
     send_gdb "continue\n"
+    gdb_expect {
+       -re "Continuing." {
+           pass "Continue with all threads running"
+       }
+       timeout {
+           fail "Continue with all threads running (timeout)"
+       }
+    }
+    sleep 1
     set description "Stopped with a ^C"
     after 1000 [send_gdb "\003"]
     gdb_expect {