aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/i386-unwind.exp
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-11-23 21:14:45 +0000
committerMark Kettenis <kettenis@gnu.org>2003-11-23 21:14:45 +0000
commit7027acc71260d05e8ba9983bceb92bf162af1241 (patch)
tree39549ae90005586e013fa671552216a09cfba8a3 /gdb/testsuite/gdb.arch/i386-unwind.exp
parentcb137aa50156c9b105cf393b867c7dbe206ef9c9 (diff)
downloadgdb-7027acc71260d05e8ba9983bceb92bf162af1241.zip
gdb-7027acc71260d05e8ba9983bceb92bf162af1241.tar.gz
gdb-7027acc71260d05e8ba9983bceb92bf162af1241.tar.bz2
* gdb.arch/i386-unwind.exp: Use gdb_run_cmd and gdb_expect instead
of gdb_test "run".
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-unwind.exp')
-rw-r--r--gdb/testsuite/gdb.arch/i386-unwind.exp17
1 files changed, 15 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-unwind.exp b/gdb/testsuite/gdb.arch/i386-unwind.exp
index fa01a8d..9c3130f 100644
--- a/gdb/testsuite/gdb.arch/i386-unwind.exp
+++ b/gdb/testsuite/gdb.arch/i386-unwind.exp
@@ -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.*" \