From 6001355542e68651970ffd8cd77ff0535a042d43 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Mon, 22 Jul 2002 22:02:21 +0000 Subject: [PATCH] * mi-cli.exp: Use mi_run_to_main to get to main. Don't use "run". Refine result string for "-interpreter-exec console bougs" test. --- gdb/testsuite/gdb.mi/ChangeLog | 5 +++++ gdb/testsuite/gdb.mi/mi-cli.exp | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/gdb/testsuite/gdb.mi/ChangeLog b/gdb/testsuite/gdb.mi/ChangeLog index eec91e5277b..7f02cd8fee6 100644 --- a/gdb/testsuite/gdb.mi/ChangeLog +++ b/gdb/testsuite/gdb.mi/ChangeLog @@ -1,3 +1,8 @@ +2002-07-22 Keith Seitz + + * mi-cli.exp: Use mi_run_to_main to get to main. Don't use "run". + Refine result string for "-interpreter-exec console bougs" test. + 2002-06-25 Keith Seitz * mi-cli.exp: Add tests to check if list_command in the console diff --git a/gdb/testsuite/gdb.mi/mi-cli.exp b/gdb/testsuite/gdb.mi/mi-cli.exp index 0f93bd24880..95ab9a5583c 100644 --- a/gdb/testsuite/gdb.mi/mi-cli.exp +++ b/gdb/testsuite/gdb.mi/mi-cli.exp @@ -53,8 +53,9 @@ mi_gdb_test "-interpreter-exec bogus command" \ {\^error,msg="mi_cmd_interpreter_exec: could not find interpreter \\\"bogus\\\""} \ "-interpreter-exec with bogus interpreter" +set msg {Undefined command: \\\"bogus\\\"\. Try \\\"help\\\"\.} mi_gdb_test "-interpreter-exec console bogus" \ - {\^error,msg="Undefined command: \"bogus\". Try \"help\"\."} \ + "&\\\"$msg\\\\n\\\".*\\^error,msg=\\\"$msg\\\".*" \ "-interpreter-exec console bogus" mi_gdb_test "-interpreter-exec console \"file $binfile\"" \ @@ -77,10 +78,7 @@ mi_gdb_test "-interpreter-exec console \"info break\"" \ {\~"Num[ \t]*Type[ \t]*Disp[ \t]*Enb[ \t]*Address[ \t]*What\\n".*~"1[ \t]*breakpoint[ \t]*keep[ \t]*y[ \t]*0x[0-9A-Fa-f]+[ \t]*in main at .*basics.c:[0-9]+\\n".*\^done} \ "-interpreter-exec console \"info break\"" -# FIXME: Is this right? This doesn't work right now anyway... -mi_gdb_test "-interpreter-exec console run" \ - {\^running.*(=.*)*\*stopped,reason="breakpoint-hit",.*\^done} \ - "-interpreter-exec console run" +mi_run_to_main mi_gdb_test "-interpreter-exec console \"set listsize 1\"" \ {\^done} \ -- 2.47.2