From e866d0e84546649adbf3cb3750c1fd0fe1aeccf3 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 19 Aug 2001 00:37:28 +0000 Subject: [PATCH] * 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(+) diff --git a/gdb/testsuite/gdb.mi/ChangeLog b/gdb/testsuite/gdb.mi/ChangeLog index cbd4462a34..0efa07017d 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 11d9cb3136..49269e56a9 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 f1cb6098fe..977723070f 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 20ee341c66..b1ff7c8cc6 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 87c93af590..b491fa5524 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 57b92e2b09..8d74eb1058 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 4735dc40da..1a2f89ffa8 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 95e02526a8..c582be2e82 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 683d6bb484..15a1e3df38 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 800cef8714..d68108ea47 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 e6330020cb..e38e0076bf 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)" }