From: Daniel Jacobowitz Date: Mon, 13 Oct 2003 16:32:51 +0000 (+0000) Subject: * gdb.threads/killed.exp: Use gdb_run_cmd. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1d69fdd54325ee363d1760ac642a7c4ec86bc78;p=binutils-gdb.git * gdb.threads/killed.exp: Use gdb_run_cmd. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c22d93e9f53..b075a5adcd2 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-10-13 Daniel Jacobowitz + + * gdb.threads/killed.exp: Use gdb_run_cmd. + 2003-10-13 Daniel Jacobowitz * gdb.base/gcore.exp: Issue an UNSUPPORTED and exit if we can't 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"