From a78817594dcee8b65f09b4e25a83a1f3c17978c2 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 13 Nov 2009 22:28:54 +0000 Subject: [PATCH] gdb/testsuite/ * gdb.cp/virtfunc.exp (do_tests): If runto_main fails, give up. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.cp/virtfunc.exp | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f6a16af7ea4..68a21f4cf05 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2009-11-13 Daniel Jacobowitz + + * gdb.cp/virtfunc.exp (do_tests): If runto_main fails, give up. + 2009-11-13 Daniel Jacobowitz * gdb.base/freebpcmd.exp: Delete unused variable. Specify diff --git a/gdb/testsuite/gdb.cp/virtfunc.exp b/gdb/testsuite/gdb.cp/virtfunc.exp index b857f2543eb..d412bc998b1 100644 --- a/gdb/testsuite/gdb.cp/virtfunc.exp +++ b/gdb/testsuite/gdb.cp/virtfunc.exp @@ -247,7 +247,10 @@ proc do_tests {} { gdb_test "set language c++" "" "" gdb_test "set width 0" "" "" - runto_main + if ![runto_main] then { + perror "couldn't run to breakpoint" + return + } test_ptype_of_classes gdb_breakpoint test_calls -- 2.30.2