diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index de03beeb73..67cadf4a7a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-10-01 Daniel Jacobowitz + + * gdb.threads/pthreads.exp: Wait for output and delay + before sending ^C. + 2001-10-01 Daniel Jacobowitz * gdb.mi/mi-var-display.exp (continue to incr_a): Recognize diff --git a/gdb/testsuite/gdb.threads/pthreads.exp b/gdb/testsuite/gdb.threads/pthreads.exp index e57583b475..0703395d78 100644 --- a/gdb/testsuite/gdb.threads/pthreads.exp +++ b/gdb/testsuite/gdb.threads/pthreads.exp @@ -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 {