* 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 de03beeb733f5591130be8058d663ce017cf512d..67cadf4a7aef84e2d0e8813f533c6e9ed68963af 100644 (file)
@@ -1,3 +1,8 @@
+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
index e57583b475cb52f9bd634901e479a048c6da6c9d..0703395d78bfaad200239518423c0cea44779ecb 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 {
This page took 0.036691 seconds and 4 git commands to generate.