From 5a41c0b7916da04800d65443a80e163e7c2d9399 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Mon, 27 Feb 2012 20:48:25 +0000 Subject: [PATCH] * gdb.cp/breakpoint.exp (test_breakpoint): Fix the runto_main failure return path. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.cp/breakpoint.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 5122d91..129773b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-02-27 Maciej W. Rozycki + + * gdb.cp/breakpoint.exp (test_breakpoint): Fix the runto_main + failure return path. + 2012-02-27 Luis Machado * gdb.base/save-bp.exp: Account for new condition evaluator output. diff --git a/gdb/testsuite/gdb.cp/breakpoint.exp b/gdb/testsuite/gdb.cp/breakpoint.exp index 53b29c3..4793a93 100644 --- a/gdb/testsuite/gdb.cp/breakpoint.exp +++ b/gdb/testsuite/gdb.cp/breakpoint.exp @@ -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}" -- 2.7.4