From 8f0cbc1ca34a350055146fb5f05d3aa86533203f Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 1 Oct 2001 20:36:48 +0000 Subject: [PATCH] * gdb.threads/pthreads.exp: Wait for output and delay before sending ^C. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.threads/pthreads.exp | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index de03beeb733..67cadf4a7ae 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 e57583b475c..0703395d78b 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 { -- 2.30.2