aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/ending-run.exp
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-10-07 16:02:16 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-10-07 16:02:16 +0000
commitaec24853b5d0ec94dd440c674d0c869c24b53e0b (patch)
tree5f992d854b33aabecd2f1be5889e04863c288ea3 /gdb/testsuite/gdb.base/ending-run.exp
parent29ca8dc5bbf7312b8f264e5ad5efee8db6a7d95a (diff)
downloadgdb-aec24853b5d0ec94dd440c674d0c869c24b53e0b.zip
gdb-aec24853b5d0ec94dd440c674d0c869c24b53e0b.tar.gz
gdb-aec24853b5d0ec94dd440c674d0c869c24b53e0b.tar.bz2
* gdb.base/ending-run.exp: Add sh specific case.
Diffstat (limited to 'gdb/testsuite/gdb.base/ending-run.exp')
-rw-r--r--gdb/testsuite/gdb.base/ending-run.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp
index 3960f06..af32acd 100644
--- a/gdb/testsuite/gdb.base/ending-run.exp
+++ b/gdb/testsuite/gdb.base/ending-run.exp
@@ -202,6 +202,11 @@ gdb_expect {
-re ".*in __wrap__?main ().*$gdb_prompt $" {
pass "step out of main (status wrapper)"
}
+ -re "__setup_argv_for_main (.*).*$gdb_prompt $" {
+ # On sh, another wrapper function (start_l) exists, so
+ # another `next' is necessary.
+ gdb_test "next" ".*in start_l ().*" "step out of main (on sh)"
+ }
-re ".*$gdb_prompt $" { fail "step out of main (at end 2)" }
timeout {
fail "step out of main (hang or timeout on step at end 2)"