Index: gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap.exp |
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap.exp b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap.exp |
index 738fd5f7acb0ce0a2272d3e27c1168ac839dcd95..cc2f75b9366a8089a2f3253fa966641ef4b33a04 100644 |
--- a/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap.exp |
+++ b/gdb/testsuite/gdb.dwarf2/dw2-objfile-overlap.exp |
@@ -19,12 +19,13 @@ if {![dwarf2_support]} { |
return 0 |
} |
-set testfile "dw2-objfile-overlap" |
+standard_testfile |
+ |
set srcfile_outer ${testfile}-outer.S |
set srcfile_inner ${testfile}-inner.S |
set executable_outer ${testfile}-outer.x |
-set binfile_outer ${objdir}/${subdir}/${executable_outer} |
-set binfile_inner ${objdir}/${subdir}/${testfile}-inner.x |
+set binfile_outer ${binfile}-outer.x |
+set binfile_inner ${binfile}-inner.x |
if { [gdb_compile "${srcdir}/${subdir}/${srcfile_outer}" "${binfile_outer}" \ |
object {}] != "" |