aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2001-10-01 20:36:48 +0000
committerDaniel Jacobowitz <drow@false.org>2001-10-01 20:36:48 +0000
commit8f0cbc1ca34a350055146fb5f05d3aa86533203f (patch)
tree969e2063e24330829fcd18ee32eca683d3f2214d /gdb
parent1f08dafd5af4feca3cbb0ad826abe8a24ea60aeb (diff)
downloadgdb-8f0cbc1ca34a350055146fb5f05d3aa86533203f.zip
gdb-8f0cbc1ca34a350055146fb5f05d3aa86533203f.tar.gz
gdb-8f0cbc1ca34a350055146fb5f05d3aa86533203f.tar.bz2
* gdb.threads/pthreads.exp: Wait for output and delay
before sending ^C.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.threads/pthreads.exp9
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index de03bee..67cadf4 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/gdb.threads/pthreads.exp b/gdb/testsuite/gdb.threads/pthreads.exp
index e57583b..0703395 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 {