]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/find.exp
after gdb_run_cmd, gdb_expect -> gdb_test_multiple/gdb_test
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / find.exp
index edddb3daf5bdb242be3055239677bb0da3f5116d..d46e421c5d5122bb1b73a253729031a7aec64943 100644 (file)
@@ -29,17 +29,7 @@ gdb_test "break $srcfile:stop_here" \
     "breakpoint function in file"
 
 gdb_run_cmd
-gdb_expect {
-    -re "Breakpoint \[0-9\]+,.*stop_here.* at .*$srcfile:.*$gdb_prompt $" {
-       pass "run until function breakpoint"
-    }
-    -re "$gdb_prompt $" {
-       fail "run until function breakpoint"
-    }
-    timeout {
-       fail "run until function breakpoint (timeout)"
-    }
-}
+gdb_test "" "Breakpoint \[0-9\]+,.*stop_here.* at .*$srcfile:.*" "run until function breakpoint"
 
 # We've now got the target program in a state where we can test "find".