aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-10-13 16:32:51 +0000
committerDaniel Jacobowitz <drow@false.org>2003-10-13 16:32:51 +0000
commitd1d69fdd54325ee363d1760ac642a7c4ec86bc78 (patch)
tree876ce323c9a08dd2d0566dfaf46c783dda71064c /gdb/testsuite/gdb.threads
parent7d605576a6ff0e9986a68e98b0a1893ce30e1f32 (diff)
downloadgdb-d1d69fdd54325ee363d1760ac642a7c4ec86bc78.zip
gdb-d1d69fdd54325ee363d1760ac642a7c4ec86bc78.tar.gz
gdb-d1d69fdd54325ee363d1760ac642a7c4ec86bc78.tar.bz2
* 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 2e61e7c..1948375 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"