summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2003-10-13 16:32:51 +0000
committerDaniel Jacobowitz <dan@debian.org>2003-10-13 16:32:51 +0000
commit1b657960b5e2150d99c9efdb48a03755a251264f (patch)
treecc01bf49af378ad5cb328dc62dce7feb05b2b988 /gdb/testsuite/gdb.threads
parent8e795d7e28b1d2ce53aa8cf9c0b08f76c5a9323e (diff)
downloadgdb-1b657960b5e2150d99c9efdb48a03755a251264f.tar.gz
* gdb.threads/killed.exp: Use gdb_run_cmd.
Diffstat (limited to 'gdb/testsuite/gdb.threads')
-rw-r--r--gdb/testsuite/gdb.threads/killed.exp10
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.threads/killed.exp b/gdb/testsuite/gdb.threads/killed.exp
index 2e61e7cd440..1948375155e 100644
--- a/gdb/testsuite/gdb.threads/killed.exp
+++ b/gdb/testsuite/gdb.threads/killed.exp
@@ -75,7 +75,15 @@ gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
-gdb_test "run" "" "run program to completion"
+gdb_run_cmd
+gdb_expect {
+ -re "$gdb_prompt $" {
+ pass "run program to completion"
+ }
+ timeout "$gdb_prompt $" {
+ fail "run program to completion (timeout)"
+ }
+}
# Try to quit.
send_gdb "quit\n"