Index: gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp |
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp b/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp |
index 8f6aebe50729cd7eb79ccf33dbf84b9c55044c7e..34e1da46b4c198eec891895adb61c9e420f7a112 100644 |
--- a/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp |
+++ b/gdb/testsuite/gdb.dwarf2/dw2-cp-infcall-ref-static.exp |
@@ -25,8 +25,10 @@ if {![dwarf2_support]} { |
return 0 |
} |
-set testfile "dw2-cp-infcall-ref-static" |
-if { [prepare_for_testing ${testfile}.exp ${testfile} [list ${testfile}-main.c ${testfile}.S] {}] } { |
+standard_testfile .S dw2-cp-infcall-ref-static-main.c |
+ |
+if { [prepare_for_testing ${testfile}.exp ${testfile} \ |
+ [list $srcfile2 $srcfile] {}] } { |
return -1 |
} |