diff options
author | Bob Rossi <bob@brasko.net> | 2005-09-11 20:24:54 +0000 |
---|---|---|
committer | Bob Rossi <bob@brasko.net> | 2005-09-11 20:24:54 +0000 |
commit | 40e55befbf32a76e0fe56029b04bfe946a0e3a83 (patch) | |
tree | eca636b80a68f72146b6ebe11da620c279ca6590 /gdb/testsuite/gdb.mi/mi-syn-frame.exp | |
parent | 3c7385ece05be8c90506eb49a16a45223d4f736a (diff) | |
download | gdb-40e55befbf32a76e0fe56029b04bfe946a0e3a83.zip gdb-40e55befbf32a76e0fe56029b04bfe946a0e3a83.tar.gz gdb-40e55befbf32a76e0fe56029b04bfe946a0e3a83.tar.bz2 |
2005-09-11 Bob Rossi <bob@brasko.net>
* lib/mi-support.exp (mi_gdb_test): Change -re to not be anchored.
* gdb.mi/mi-syn-frame.exp: Call mi_gdb_test twice instead of once for
commands that return an MI output command and an asyncronous MI output
command.
* gdb.mi/mi-console.exp: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-syn-frame.exp')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-syn-frame.exp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-syn-frame.exp b/gdb/testsuite/gdb.mi/mi-syn-frame.exp index 28a2f28..6648b3a 100644 --- a/gdb/testsuite/gdb.mi/mi-syn-frame.exp +++ b/gdb/testsuite/gdb.mi/mi-syn-frame.exp @@ -35,8 +35,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } -set my_mi_gdb_prompt "\\(gdb\\)\[ \]*\[\r\n\]*" - mi_gdb_exit mi_gdb_start separate-inferior-tty mi_delete_breakpoints @@ -61,10 +59,12 @@ mi_gdb_test "402-stack-list-frames" "402\\^done,stack=\\\[frame=\{level=\"0\",ad # Continue back to main() # mi_gdb_test "403-exec-continue" \ - "403\\^running\[\r\n\]+${my_mi_gdb_prompt}403\\\*stopped" \ + "403\\^running" \ "testing exec continue" \ "hi in foo\[\r\n\]\+" +mi_gdb_test "" "403\\*stopped" "finished exec continue" + mi_gdb_test "404-stack-list-frames 0 0" \ "404\\^done,stack=\\\[frame=\{level=\"0\",addr=\"$hex\",func=\"main\",file=\".*mi-syn-frame.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$decimal\"\}.*\\\]" \ "list stack frames" @@ -91,8 +91,9 @@ mi_gdb_test "407-stack-list-frames" \ "list stack frames" -mi_gdb_test "408-exec-continue" \ - "408\\^running\[\r\n\]+${my_mi_gdb_prompt}408\\\*stopped" +mi_gdb_test "408-exec-continue" "408\\^running" + +mi_gdb_test "" "408\\*stopped.*" "finished exec continue" mi_gdb_test "409-stack-list-frames 0 0" \ "409\\^done,stack=\\\[frame=\{level=\"0\",addr=\"$hex\",func=\"main\",file=\".*mi-syn-frame.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$decimal\"\}.*\\\]" \ |