From: Daniel Jacobowitz Date: Mon, 1 Oct 2001 20:36:48 +0000 (+0000) Subject: * gdb.threads/pthreads.exp: Wait for output and delay X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=8f0cbc1ca34a350055146fb5f05d3aa86533203f;p=deliverable%2Fbinutils-gdb.git * gdb.threads/pthreads.exp: Wait for output and delay before sending ^C. --- 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 {