Index: gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.exp |
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.exp b/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.exp |
index 5fa4075aa1e7b63a5113ef4f8858319f0a8efb83..b85d8ed7626d1f3aa4906394a8b3b99bb5106099 100644 |
--- a/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.exp |
+++ b/gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.exp |
@@ -22,15 +22,12 @@ if {![dwarf2_support]} { |
return 0 |
} |
-set testfile "dw2-double-set-die-type" |
-set srcfile "$testfile.S" |
-set executable "$testfile.x" |
+standard_testfile .S |
-if { [gdb_compile [file join $srcdir $subdir $srcfile] \ |
- [file join $objdir $subdir $executable] \ |
+if { [gdb_compile [file join $srcdir $subdir $srcfile] $binfile \ |
object {nodebug}] != "" } { |
return -1 |
} |
-clean_restart $executable |
+clean_restart $testfile |
gdb_test "ptype a" "type = class .*" |