Index: gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp |
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp |
index 42a5f451cdb45804de8c68f0b315bccb13b5c68d..785744919db10dfd7e4411f95bb7386769a15e11 100644 |
--- a/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp |
+++ b/gdb/testsuite/gdb.dwarf2/dw2-linkage-name-trust.exp |
@@ -25,17 +25,15 @@ if {![dwarf2_support]} { |
return 0 |
} |
-set testfile "dw2-linkage-name-trust" |
+standard_testfile .S |
set executable ${testfile} |
-set binfile ${objdir}/${subdir}/${executable} |
-if { [gdb_compile ${srcdir}/${subdir}/${testfile}-main.cc "${objdir}/${subdir}/${testfile}-main.o" object {c++ debug}] != "" |
- || [gdb_compile "${srcdir}/${subdir}/${testfile}.S" "${objdir}/${subdir}/${testfile}.o" object {}] != "" |
- || [gdb_compile "${objdir}/${subdir}/${testfile}-main.o ${objdir}/${subdir}/${testfile}.o" "${binfile}" executable {c++}] != "" } { |
+ |
+if {[prepare_for_testing_full $testfile.exp \ |
+ [list $testfile c++ $testfile-main.cc {c++ debug} \ |
+ $srcfile {}]]} { |
return -1 |
} |
-clean_restart $executable |
- |
if ![runto_main] then { |
return -1 |
} |