+2006-07-19 Andrew Stubbs <andrew.stubbs@st.com>
+
+ * gdb.base/ifelse.exp: Remove troublesome 'got here' messages.
+
2006-07-18 Daniel Jacobowitz <dan@codesourcery.com>
* gdb.arch/i386-size.c, gdb.arch/i386-size.exp: New files.
# 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
# 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
# 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
# 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