]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb.mi/mi-break.exp (test_ignore_count): Use mi_expect_stop.
authorVladimir Prus <vladimir@codesourcery.com>
Wed, 11 Jun 2008 13:35:58 +0000 (13:35 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Wed, 11 Jun 2008 13:35:58 +0000 (13:35 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-break.exp

index 13c5d31e8a13abf15d955dd4a2346c7c0a76dee9..2a7835714e5ccb21671c4e0a8aae8b337776744f 100644 (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.
index 2798569d463cd27af02a343379103b573fd5c6bd..b3fc551c7e0fed7fe0d5021ba8ba33d06752fb92 100644 (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 {} {