diff options
Diffstat (limited to 'gdb/testsuite/gdb.cp/anon-union.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/anon-union.exp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.cp/anon-union.exp b/gdb/testsuite/gdb.cp/anon-union.exp index fe30ef1..51b69e2 100644 --- a/gdb/testsuite/gdb.cp/anon-union.exp +++ b/gdb/testsuite/gdb.cp/anon-union.exp @@ -26,22 +26,12 @@ if { [skip_cplus_tests] } { continue } -set testfile "anon-union" -set srcfile ${testfile}.cc -set binfile ${objdir}/${subdir}/${testfile} +standard_testfile .cc -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } { - perror "Testcase compile failed" 0 - continue +if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} { + return -1 } -# Start with a fresh gdb -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} - - if ![runto_main] then { perror "couldn't run to breakpoint" continue |