Index: gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp |
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp b/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp |
index 72a075c86e4d3125f2adfc6f9e2edde4e4623f1a..77d42ecff0d42359d6c61cc8bf82b778cf2e89cb 100644 |
--- a/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp |
+++ b/gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.exp |
@@ -19,16 +19,13 @@ if {![dwarf2_support]} { |
return 0 |
} |
-set testfile "dw2-simple-locdesc" |
-set srcfile ${testfile}.S |
-set executable ${testfile}.x |
-set binfile ${objdir}/${subdir}/${executable} |
+standard_testfile .S |
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {}] != "" } { |
return -1 |
} |
-clean_restart $executable |
+clean_restart $testfile |
# Re: [patch 2/2] Fix decode_locdesc for gcc-4.7.x optimized DWARF |
# http://sourceware.org/ml/gdb-patches/2011-07/msg00766.html |