diff options
author | Michael Snyder <msnyder@vmware.com> | 2002-05-07 02:22:08 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2002-05-07 02:22:08 +0000 |
commit | cb9a9d3ed2f4008054fa2f6dd8454741a5342401 (patch) | |
tree | 242ce9157e7254f7039763fff586bcd685dadee8 /gdb/testsuite/lib/gdb.exp | |
parent | f1c47eb23810315ee8b51dc0ea0bdf7b6eb3caa9 (diff) | |
download | gdb-cb9a9d3ed2f4008054fa2f6dd8454741a5342401.zip gdb-cb9a9d3ed2f4008054fa2f6dd8454741a5342401.tar.gz gdb-cb9a9d3ed2f4008054fa2f6dd8454741a5342401.tar.bz2 |
2002-05-06 Michael Snyder <msnyder@redhat.com>
* lib/gdb.exp (gdb_test): Add case to allow for status wrapper.
(gdb_continue_to_end): Accept output from status wrapper.
* gdb.base/ending-run.exp: Add case for output from status wrapper.
Clean up fail messages to match pass messages.
Diffstat (limited to 'gdb/testsuite/lib/gdb.exp')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 303c3c5..71d937a 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -521,6 +521,15 @@ proc gdb_test { args } { fail "$errmsg" return -1 } + -re "EXIT code \[0-9\r\n\]+Program exited normally.*$gdb_prompt $" { + if ![string match "" $message] then { + set errmsg "$message: the program exited" + } else { + set errmsg "$command: the program exited" + } + fail "$errmsg" + return -1 + } -re "The program is not being run.*$gdb_prompt $" { if ![string match "" $message] then { set errmsg "$message: the program is no longer running" @@ -1605,7 +1614,7 @@ proc gdb_continue_to_end {mssg} { # Don't bother to check the output of the program, that may be # extremely tough for some remote systems. gdb_test "continue"\ - "Continuing.\[\r\n0-9\]+Program exited normally\\..*"\ + "Continuing.\[\r\n0-9\]+(... EXIT code 0\[\r\n\]+|)Program exited normally\\..*"\ "continue until exit at $mssg" } } |