gdb/testsuite/
authorDaniel Jacobowitz <drow@false.org>
Fri, 13 Nov 2009 22:28:54 +0000 (22:28 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 13 Nov 2009 22:28:54 +0000 (22:28 +0000)
* gdb.cp/virtfunc.exp (do_tests): If runto_main fails, give up.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/virtfunc.exp

index f6a16af7ea444cf8b187ed3278563baa2663bf14..68a21f4cf05d383861faa962b4ec6e643b977f68 100644 (file)
@@ -1,3 +1,7 @@
+2009-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.cp/virtfunc.exp (do_tests): If runto_main fails, give up.
+
 2009-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * gdb.base/freebpcmd.exp: Delete unused variable.  Specify
index b857f2543eb349b25600bd3f5b30b04139f0f1dd..d412bc998b16ebd4f3ec2f460f807caca3305127 100644 (file)
@@ -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