* gdb.threads/pthreads.exp: Wait for output and delay

before sending ^C.
This commit is contained in:
Daniel Jacobowitz 2001-10-01 20:36:48 +00:00
parent 1f08dafd5a
commit 8f0cbc1ca3
2 changed files with 14 additions and 0 deletions

View 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

View 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 {