import gdb-19990422 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / display.exp
index f5c2641226d2af3d70bd786ceb00a5d5d53940ea..638072c2baaf9d865dcc20e26a52269c1b69b9c1 100644 (file)
@@ -49,8 +49,10 @@ gdb_load ${binfile}
 
 # Ok, on to real life
 #
-gdb_test "b main"     ".*Breakpoint 1.*" "break main"
-gdb_test "r"          ".*Breakpoint 1, main.*" "get to main"
+
+if {![runto main]} {
+  fail "Could not run to main - other tests will fail."
+}
 gdb_test "b 14" ".*Breakpoint 2.*" "break do_loops"
 gdb_test "c"          ".*Breakpoint 2, do_loops.*" "get to do_loops"
 
This page took 0.024595 seconds and 4 git commands to generate.