From e866d0e84546649adbf3cb3750c1fd0fe1aeccf3 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 19 Aug 2001 00:37:28 +0000 Subject: * 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. --- gdb/testsuite/gdb.mi/ChangeLog | 7 +++++++ gdb/testsuite/gdb.mi/mi-console.exp | 3 +++ gdb/testsuite/gdb.mi/mi-return.exp | 3 +++ gdb/testsuite/gdb.mi/mi-simplerun.exp | 3 +++ gdb/testsuite/gdb.mi/mi-stepi.exp | 3 +++ gdb/testsuite/gdb.mi/mi-until.exp | 3 +++ gdb/testsuite/gdb.mi/mi0-console.exp | 3 +++ gdb/testsuite/gdb.mi/mi0-return.exp | 3 +++ gdb/testsuite/gdb.mi/mi0-simplerun.exp | 3 +++ gdb/testsuite/gdb.mi/mi0-stepi.exp | 3 +++ gdb/testsuite/gdb.mi/mi0-until.exp | 3 +++ 11 files changed, 37 insertions(+) (limited to 'gdb/testsuite') diff --git a/gdb/testsuite/gdb.mi/ChangeLog b/gdb/testsuite/gdb.mi/ChangeLog index cbd4462..0efa070 100644 --- a/gdb/testsuite/gdb.mi/ChangeLog +++ b/gdb/testsuite/gdb.mi/ChangeLog @@ -1,3 +1,10 @@ +2001-08-18 Andrew Cagney + + * 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. + 2001-06-27 Andrew Cagney * mi-disassemble.exp: Update to accept mi1 breakpoint tables. diff --git a/gdb/testsuite/gdb.mi/mi-console.exp b/gdb/testsuite/gdb.mi/mi-console.exp index 11d9cb3..49269e5 100644 --- a/gdb/testsuite/gdb.mi/mi-console.exp +++ b/gdb/testsuite/gdb.mi/mi-console.exp @@ -60,6 +60,9 @@ gdb_expect { -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*mi-console.c\",line=\"13\"\}\r\n$mi_gdb_prompt$" { pass "run to main" } + -re ".*$mi_gdb_prompt$" { + fail "run to main (2)" + } timeout { fail "run to main (timeout)" } diff --git a/gdb/testsuite/gdb.mi/mi-return.exp b/gdb/testsuite/gdb.mi/mi-return.exp index f1cb609..9777230 100644 --- a/gdb/testsuite/gdb.mi/mi-return.exp +++ b/gdb/testsuite/gdb.mi/mi-return.exp @@ -60,6 +60,9 @@ proc test_running_to_callee4 {} { -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\\\[\\\],file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" { pass "run to callee4" } + -re ".*$mi_gdb_prompt$" { + fail "run to callee4 (2)" + } timeout { fail "run to callee4 (timeout)" } 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)" } diff --git a/gdb/testsuite/gdb.mi/mi-stepi.exp b/gdb/testsuite/gdb.mi/mi-stepi.exp index 87c93af..b491fa5 100644 --- a/gdb/testsuite/gdb.mi/mi-stepi.exp +++ b/gdb/testsuite/gdb.mi/mi-stepi.exp @@ -60,6 +60,9 @@ proc test_running_to_main {} { -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)" } diff --git a/gdb/testsuite/gdb.mi/mi-until.exp b/gdb/testsuite/gdb.mi/mi-until.exp index 57b92e2..8d74eb1 100644 --- a/gdb/testsuite/gdb.mi/mi-until.exp +++ b/gdb/testsuite/gdb.mi/mi-until.exp @@ -60,6 +60,9 @@ proc test_running_to_foo {} { -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",line=\"10\"\}\r\n$mi_gdb_prompt$" { pass "run to main" } + -re ".*$mi_gdb_prompt$" { + fail "run to main (2)" + } timeout { fail "run to main (timeout)" } diff --git a/gdb/testsuite/gdb.mi/mi0-console.exp b/gdb/testsuite/gdb.mi/mi0-console.exp index 4735dc4..1a2f89f 100644 --- a/gdb/testsuite/gdb.mi/mi0-console.exp +++ b/gdb/testsuite/gdb.mi/mi0-console.exp @@ -60,6 +60,9 @@ gdb_expect { -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*mi-console.c\",line=\"13\"\}\r\n$mi_gdb_prompt$" { pass "run to main" } + -re ".*$mi_gdb_prompt$" { + fail "run to main (2)" + } timeout { fail "run to main (timeout)" } diff --git a/gdb/testsuite/gdb.mi/mi0-return.exp b/gdb/testsuite/gdb.mi/mi0-return.exp index 95e0252..c582be2 100644 --- a/gdb/testsuite/gdb.mi/mi0-return.exp +++ b/gdb/testsuite/gdb.mi/mi0-return.exp @@ -60,6 +60,9 @@ proc test_running_to_callee4 {} { -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\{\},file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" { pass "run to callee4" } + -re ".*$mi_gdb_prompt$" { + fail "run to callee4 (2)" + } timeout { fail "run to callee4 (timeout)" } diff --git a/gdb/testsuite/gdb.mi/mi0-simplerun.exp b/gdb/testsuite/gdb.mi/mi0-simplerun.exp index 683d6bb..15a1e3d 100644 --- a/gdb/testsuite/gdb.mi/mi0-simplerun.exp +++ b/gdb/testsuite/gdb.mi/mi0-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)" } diff --git a/gdb/testsuite/gdb.mi/mi0-stepi.exp b/gdb/testsuite/gdb.mi/mi0-stepi.exp index 800cef8..d68108e 100644 --- a/gdb/testsuite/gdb.mi/mi0-stepi.exp +++ b/gdb/testsuite/gdb.mi/mi0-stepi.exp @@ -60,6 +60,9 @@ proc test_running_to_main {} { -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)" } diff --git a/gdb/testsuite/gdb.mi/mi0-until.exp b/gdb/testsuite/gdb.mi/mi0-until.exp index e633002..e38e007 100644 --- a/gdb/testsuite/gdb.mi/mi0-until.exp +++ b/gdb/testsuite/gdb.mi/mi0-until.exp @@ -60,6 +60,9 @@ proc test_running_to_foo {} { -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\{\},file=\".*until.c\",line=\"10\"\}\r\n$mi_gdb_prompt$" { pass "run to main" } + -re ".*$mi_gdb_prompt$" { + fail "run to main (2)" + } timeout { fail "run to main (timeout)" } -- cgit v1.1