diff options
Diffstat (limited to 'gdb/testsuite/gdb.cp/annota2.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/annota2.exp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.cp/annota2.exp b/gdb/testsuite/gdb.cp/annota2.exp index 41e1cc52857..9a54face335 100644 --- a/gdb/testsuite/gdb.cp/annota2.exp +++ b/gdb/testsuite/gdb.cp/annota2.exp @@ -22,12 +22,10 @@ if { [skip_cplus_tests] } { continue } -set testfile "annota2" -set srcfile ${testfile}.cc -set binfile ${objdir}/${subdir}/${testfile} +standard_testfile .cc -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++ nowarnings}] != "" } { - untested annota2.exp +if {[prepare_for_testing $testfile.exp $testfile $srcfile \ + {debug c++ nowarnings}]} { return -1 } @@ -40,12 +38,6 @@ if [is_remote target] then { return 0 } - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load ${binfile} - # # line number where we need to stop in main # |