after gdb_run_cmd, gdb_expect -> gdb_test_multiple/gdb_test
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / step-bt.exp
index e521456e78d376bf35c64c77d68c8b86fb59ae91..2469c2beaf390cd5e643573e55c329caad057bd7 100644 (file)
@@ -29,19 +29,7 @@ gdb_test "break *hello" \
          "breakpoint at first instruction of hello()"
 
 gdb_run_cmd
-gdb_expect {
-    -re ".*Breakpoint.* hello .* at .*$srcfile:.*$gdb_prompt $"  {
-       pass "run to hello()"
-    }
-    -re ".*$gdb_prompt $" {
-       fail "run to hello()"
-       return -1
-    }
-    timeout {
-        fail "run to hello() (timeout)"
-        return -1
-    }
-}
+gdb_test "" "Breakpoint.* hello .* at .*$srcfile:.*" "run to hello()"
 
 gdb_test "stepi" \
          ".*" \
This page took 0.023879 seconds and 4 git commands to generate.