From 83408de7337aa2b48c17d698421a5ba9361673f1 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 11 Jun 2008 13:35:58 +0000 Subject: [PATCH 1/1] * gdb.mi/mi-break.exp (test_ignore_count): Use mi_expect_stop. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.mi/mi-break.exp | 13 ++----------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 13c5d31e8a1..2a7835714e5 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-06-10 Vladimir Prus + + * gdb.mi/mi-break.exp (test_ignore_count): Use mi_expect_stop. + 2008-06-10 Vladimir Prus * gdb.mi/mi-console.exp: Adjust. diff --git a/gdb/testsuite/gdb.mi/mi-break.exp b/gdb/testsuite/gdb.mi/mi-break.exp index 2798569d463..b3fc551c7e0 100644 --- a/gdb/testsuite/gdb.mi/mi-break.exp +++ b/gdb/testsuite/gdb.mi/mi-break.exp @@ -158,17 +158,8 @@ proc test_ignore_count {} { mi_run_cmd - gdb_expect { - -re ".*\\*stopped.*func=\"callme\".*args=\\\[\{name=\"i\",value=\"2\"\}\\\].*\r\n($mi_gdb_prompt)?$" { - pass "run to breakpoint with ignore count" - } - -re ".*$mi_gdb_prompt$" { - fail "run to breakpoint with ignore count" - } - timeout { - fail "run to breakpoint with ignore count (timeout)" - } - } + mi_expect_stop "breakpoint-hit" "callme" "\{name=\"i\",value=\"2\"\}" ".*basics.c" "51" \ + {"" "disp=\"keep\"" } "run to breakpoint with ignore count" } proc test_error {} { -- 2.30.2