Index: gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp |
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp |
index 1fb5541f950ce97fb138b37c0f73487d413c6eb0..02f2fcf25ec146030159e649ec137132b7e8b163 100644 |
--- a/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp |
+++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-namespace.exp |
@@ -21,15 +21,14 @@ if {![dwarf2_support]} { |
return 0 |
} |
-set testfile "dw2-empty-namespace" |
-set srcfile ${testfile}.S |
-set executable ${testfile}.x |
+standard_testfile .S |
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objdir}/${subdir}/${executable}" object {nodebug}] != "" } { |
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" $binfile \ |
+ object {nodebug}] != "" } { |
return -1 |
} |
-clean_restart $executable |
+clean_restart $testfile |
# `p var' below can work without identified DWARF DIE just based on its ELF symbol. |
# Catch it here as `type = <data variable, no debug info>'. |