* gdb.mi/mi-break.exp (test_ignore_count): Use mi_expect_stop.

This commit is contained in:
Vladimir Prus 2008-06-11 13:35:58 +00:00
parent 060871df59
commit 83408de733
2 changed files with 6 additions and 11 deletions

View file

@ -1,3 +1,7 @@
2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
* gdb.mi/mi-break.exp (test_ignore_count): Use mi_expect_stop.
2008-06-10 Vladimir Prus <vladimir@codesourcery.com>
* gdb.mi/mi-console.exp: Adjust.

View file

@ -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 {} {