aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2006-07-19 13:05:21 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2006-07-19 13:05:21 +0000
commit6d7fd486d76505007b70dda8b92e1662a6975619 (patch)
treebbfbe30b66ff370a4eaf07c3d549127cc1823f4d /gdb/testsuite/gdb.base
parent401a54cf6e563c470108c35fe892e8b7be2b227a (diff)
downloadgdb-6d7fd486d76505007b70dda8b92e1662a6975619.zip
gdb-6d7fd486d76505007b70dda8b92e1662a6975619.tar.gz
gdb-6d7fd486d76505007b70dda8b92e1662a6975619.tar.bz2
2006-07-19 Andrew Stubbs <andrew.stubbs@st.com>
* gdb.base/ifelse.exp: Remove troublesome 'got here' messages.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/ifelse.exp16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.base/ifelse.exp b/gdb/testsuite/gdb.base/ifelse.exp
index fd570a6..1ad6520 100644
--- a/gdb/testsuite/gdb.base/ifelse.exp
+++ b/gdb/testsuite/gdb.base/ifelse.exp
@@ -30,8 +30,8 @@ gdb_start
# with true condition
set message "if 1 with empty body"
-gdb_test_multiple "if 1\nend\necho got here\\n" $message {
- -re ".*got here.*$gdb_prompt $" {pass $message}
+gdb_test_multiple "if 1\nend" $message {
+ -re "$gdb_prompt $" {pass $message}
eof {
fail "$message (crashed)"
gdb_exit
@@ -41,8 +41,8 @@ gdb_test_multiple "if 1\nend\necho got here\\n" $message {
# with false condition
set message "if 0 with empty body"
-gdb_test_multiple "if 0\nend\necho got here\\n" $message {
- -re ".*got here.*$gdb_prompt $" {pass $message}
+gdb_test_multiple "if 0\nend" $message {
+ -re "$gdb_prompt $" {pass $message}
eof {
fail "$message (crashed)"
gdb_exit
@@ -62,8 +62,8 @@ gdb_test "if 1\necho true\\n\nelse\necho false\\n\nend" "true" ""
# with true condition
set message "if 1 .. else with empty body"
-gdb_test_multiple "if 1\nelse\nend\necho got here\\n" $message {
- -re ".*got here.*$gdb_prompt $" {pass $message}
+gdb_test_multiple "if 1\nelse\nend" $message {
+ -re "$gdb_prompt $" {pass $message}
eof {
fail "$message (crashed)"
gdb_exit
@@ -76,8 +76,8 @@ gdb_test "if 1\necho true\\n\nelse\necho false\\n\nend" "true" ""
# with false condition
set message "if 0 .. else with empty body"
-gdb_test_multiple "if 0\nelse\nend\necho got here\\n" $message {
- -re ".*got here.*$gdb_prompt $" {pass $message}
+gdb_test_multiple "if 0\nelse\nend" $message {
+ -re "$gdb_prompt $" {pass $message}
eof {
fail "$message (crashed)"
gdb_exit