diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2010-11-12 21:49:55 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@codesourcery.com> | 2010-11-12 21:49:55 +0000 |
commit | 550202613b8b567107580a062f418947b689e1ed (patch) | |
tree | e04391fc976a69ce55d9630e949eecb034526282 /gdb/testsuite/gdb.stabs | |
parent | 787ced139be0421e8c5e0fbfe7ff5429d8b67601 (diff) | |
download | gdb-550202613b8b567107580a062f418947b689e1ed.tar.gz |
gdb/testsuite/
* gdb.stabs/gdb11479.exp: Use runto_main.
Diffstat (limited to 'gdb/testsuite/gdb.stabs')
-rw-r--r-- | gdb/testsuite/gdb.stabs/gdb11479.exp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.stabs/gdb11479.exp b/gdb/testsuite/gdb.stabs/gdb11479.exp index e8288a4f2da..7177530c0a5 100644 --- a/gdb/testsuite/gdb.stabs/gdb11479.exp +++ b/gdb/testsuite/gdb.stabs/gdb11479.exp @@ -25,8 +25,12 @@ if $tracelevel then { set testfile "gdb11479" proc do_test {version} { + if ![runto_main] { + fail "Can't run to main $version" + return -1 + } gdb_test "rb test" "" "Set breakpoints $version" - gdb_test "run" "Breakpoint .* test2 .*" "Stop at first breakpoint $version" + gdb_test "continue" "Breakpoint .* test2 .*" "Stop at first breakpoint $version" # Check that the struct is read in correctly gdb_test "print *t" ".*\{x = 5, y = 25, b = 2.5\}.*" \ "Inspect t in test2 $version" |