* gdb.cp/breakpoint.exp (test_breakpoint): Fix the runto_main
authorMaciej W. Rozycki <macro@linux-mips.org>
Mon, 27 Feb 2012 20:48:25 +0000 (20:48 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Mon, 27 Feb 2012 20:48:25 +0000 (20:48 +0000)
failure return path.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/breakpoint.exp

index 5122d91a59ad81257d5b172ffa0a0ff7e33ba657..129773beeb442e984da15d7db60e1cc0227a544c 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * gdb.cp/breakpoint.exp (test_breakpoint): Fix the runto_main
+       failure return path.
+
 2012-02-27  Luis Machado  <lgustavo@codesourcery.com>
 
        * gdb.base/save-bp.exp: Account for new condition evaluator output.
index 53b29c35539fbf7c3f287f02b3e27427a5ccd0a9..4793a93ced23db481e06ddf31ac64b6365c6f6f0 100644 (file)
@@ -46,7 +46,7 @@ proc test_breakpoint {name} {
     # lead to a cascade.
     if ![runto_main] then {
        perror "couldn't run to main when testing ${name}"
-       continue
+       return -code continue
     } else {
        gdb_breakpoint "${name}"
        gdb_test "continue" "Continuing.\r\n\r\nBreakpoint \[0-9\]*, ${name}.*" "continue to ${name}"