]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb.arch/i386-unwind.exp: Use gdb_run_cmd and gdb_expect instead
authorMark Kettenis <kettenis@gnu.org>
Sun, 23 Nov 2003 21:14:45 +0000 (21:14 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 23 Nov 2003 21:14:45 +0000 (21:14 +0000)
of gdb_test "run".

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/i386-unwind.exp

index 27f40deefb30864a4b4fc095fffc048a69f03a17..954a1c13f44b5cc91b97ee29b619454b24b1618a 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-23  Mark Kettenis  <kettenis@gnu.org>
+
+       * gdb.arch/i386-unwind.exp: Use gdb_run_cmd and gdb_expect instead
+       of gdb_test "run".
+
 2003-11-23  Mark Kettenis  <kettenis@gnu.org>
 
        * gdb.arch/i386-unwind.exp: Don't use runto_main.  Change
index fa01a8d092cf4ed24a92baf8cecbd3f5ace4dc2c..9c3130fc8c3541cb308489d4edfae71e20d7590c 100644 (file)
@@ -47,8 +47,21 @@ gdb_load ${binfile}
 
 # Testcase for backtrace/1435.
 
-gdb_test "run" "Program received signal SIGTRAP.*" \
-         "run past gdb1435"
+# We use gdb_run_cmd so this stands a chance to work for remote
+# targets too.
+gdb_run_cmd
+
+gdb_expect {
+    -re "Program received signal SIGTRAP.*$gdb_prompt $" {
+       pass "run past gdb1435"
+    }
+    -re ".*$gdb_prompt $" {
+       fail "run past gdb1435"
+    }
+    timeout {
+       fail "run past gdb1435 (timeout)"
+    }
+}
 
 gdb_test "backtrace 10" \
        "#1\[ \t]*$hex in gdb1435.*\r\n#2\[ \t\]*$hex in main.*" \