* gdb.threads/killed.exp: Use gdb_run_cmd.
authorDaniel Jacobowitz <drow@false.org>
Mon, 13 Oct 2003 16:32:51 +0000 (16:32 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 13 Oct 2003 16:32:51 +0000 (16:32 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/killed.exp

index c22d93e9f53dbf2ff4daa32ae936dcb36c4e7ab2..b075a5adcd234f20a408971c90bd5164f67a06d9 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-13  Daniel Jacobowitz  <drow@mvista.com>
+
+       * gdb.threads/killed.exp: Use gdb_run_cmd.
+
 2003-10-13  Daniel Jacobowitz  <drow@mvista.com>
 
        * gdb.base/gcore.exp: Issue an UNSUPPORTED and exit if we can't
index 2e61e7cd4406c731b87ba97fb1ce9fc7ff334c4b..1948375155efb00f8eab07c9e3201cfa7f0d4228 100644 (file)
@@ -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"