aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-simplerun.exp
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-08-19 00:37:28 +0000
committerAndrew Cagney <cagney@redhat.com>2001-08-19 00:37:28 +0000
commite866d0e84546649adbf3cb3750c1fd0fe1aeccf3 (patch)
tree9eed98d086f42450115e2e73ffaf9c17e6b87fbb /gdb/testsuite/gdb.mi/mi-simplerun.exp
parent992ddc6b098eaaff8526ce04a25532c2301d94b4 (diff)
downloadgdb-e866d0e84546649adbf3cb3750c1fd0fe1aeccf3.zip
gdb-e866d0e84546649adbf3cb3750c1fd0fe1aeccf3.tar.gz
gdb-e866d0e84546649adbf3cb3750c1fd0fe1aeccf3.tar.bz2
* mi0-until.exp, mi-until.exp, mi0-stepi.exp, mi-stepi.exp,
mi-simplerun.exp, mi0-simplerun.exp, mi0-return.exp, mi-return.exp, mi0-console.exp, mi-console.exp: Recognize an unexpected run-to-main response. Report as a fail.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-simplerun.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi-simplerun.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-simplerun.exp b/gdb/testsuite/gdb.mi/mi-simplerun.exp
index 20ee341..b1ff7c8 100644
--- a/gdb/testsuite/gdb.mi/mi-simplerun.exp
+++ b/gdb/testsuite/gdb.mi/mi-simplerun.exp
@@ -107,6 +107,9 @@ proc test_running_the_program {} {
-re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
pass "run to main"
}
+ -re ".*$mi_gdb_prompt$" {
+ fail "run to main (2)"
+ }
timeout {
fail "run to main (timeout)"
}