Index: gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp |
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp b/gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp |
index 391381161563b0296dc8253747df1d1bafd5b520..aefe3f517435cd8c6cf27128d850730e905a128c 100644 |
--- a/gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp |
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp |
@@ -22,14 +22,13 @@ if {![dwarf2_support]} { |
return 0 |
} |
-set testfile "dw2-inheritance" |
-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 |
gdb_test "ptype inherited" "type = class inherited .*" |