aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.c++/method.exp
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-05-07 00:45:46 +0000
committerMichael Snyder <msnyder@vmware.com>2002-05-07 00:45:46 +0000
commitf1c47eb23810315ee8b51dc0ea0bdf7b6eb3caa9 (patch)
tree5934fe490e6add8235433a869b80da1459453666 /gdb/testsuite/gdb.c++/method.exp
parentb491616acb5462a3694160ffef6413c160fed10a (diff)
downloadbinutils-f1c47eb23810315ee8b51dc0ea0bdf7b6eb3caa9.zip
binutils-f1c47eb23810315ee8b51dc0ea0bdf7b6eb3caa9.tar.gz
binutils-f1c47eb23810315ee8b51dc0ea0bdf7b6eb3caa9.tar.bz2
2002-05-06 Michael Snyder <msnyder@redhat.com>
Enable the "needs_status_wrapper" testsuite feature. * lib/gdb.exp (gdb_wrapper_init): New procedure. (gdb_compile): Conditionally call gdb_wrapper_init. * gdb.base/a2-run.exp: Recognize output from status wrapper. * gdb.c++/method.exp: Recognize output from status wrapper.
Diffstat (limited to 'gdb/testsuite/gdb.c++/method.exp')
-rw-r--r--gdb/testsuite/gdb.c++/method.exp15
1 files changed, 12 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.c++/method.exp b/gdb/testsuite/gdb.c++/method.exp
index 8deafa8..acd51b9 100644
--- a/gdb/testsuite/gdb.c++/method.exp
+++ b/gdb/testsuite/gdb.c++/method.exp
@@ -180,6 +180,15 @@ gdb_expect {
timeout { fail "(timeout) ptype A" }
}
-gdb_test "cont" \
- "Continuing.\r\n\r\nProgram exited normally." \
- "finish program"
+send_gdb "cont\n"
+gdb_expect {
+ -re "Continuing\r\n\r\nProgram exited normally.*$gdb_prompt $" {
+ pass "finish program"
+ }
+ -re "Continuing.* EXIT code 0.*Program exited normally.*$gdb_prompt $" {
+ pass "finish program (exit wrapper)"
+ }
+ -re ".*$gdb_prompt $" { fail "finish program" }
+ default:{ fail "finish program (timeout)" }
+}
+