diff options
Diffstat (limited to 'gdb/testsuite/gdb.cp/mb-templates.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/mb-templates.exp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.cp/mb-templates.exp b/gdb/testsuite/gdb.cp/mb-templates.exp index c1d3ebc7ee2..8aab4156d6d 100644 --- a/gdb/testsuite/gdb.cp/mb-templates.exp +++ b/gdb/testsuite/gdb.cp/mb-templates.exp @@ -24,22 +24,16 @@ if { [istarget "spu*-*-*"] } { } -set testfile "mb-templates" -set srcfile ${testfile}.cc -set executable ${testfile} -set binfile ${objdir}/${subdir}/${executable} +standard_testfile .cc if [get_compiler_info "c++"] { return -1 } -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } { - untested mb-templates.exp - return -1 +if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} { + return -1 } -clean_restart ${executable} - set bp_location [gdb_get_line_number "set breakpoint here"] # Set a breakpoint with multiple locations |