From: Andrew Cagney Date: Sun, 19 Aug 2001 00:37:28 +0000 (+0000) Subject: * mi0-until.exp, mi-until.exp, mi0-stepi.exp, mi-stepi.exp, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e866d0e84546649adbf3cb3750c1fd0fe1aeccf3;p=binutils-gdb.git * 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. --- diff --git a/gdb/testsuite/gdb.mi/ChangeLog b/gdb/testsuite/gdb.mi/ChangeLog index cbd4462a347..0efa07017de 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 11d9cb31362..49269e56a9e 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 f1cb6098fe5..977723070f7 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 20ee341c669..b1ff7c8cc65 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 87c93af5903..b491fa55240 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 57b92e2b090..8d74eb1058e 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 4735dc40dad..1a2f89ffa8f 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 95e02526a8e..c582be2e820 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 683d6bb4848..15a1e3df38e 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 800cef87145..d68108ea47a 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 e6330020cb1..e38e0076bfd 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)" }