Index: gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.exp |
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.exp b/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.exp |
index f731d7ba8e01b1c6c053dcdf703dac49370d8545..125b2af98d47fe8dbfb5823eca7730a34e434239 100644 |
--- a/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.exp |
+++ b/gdb/testsuite/gdb.dwarf2/dw2-op-stack-value.exp |
@@ -19,15 +19,14 @@ if {![dwarf2_support]} { |
return 0 |
} |
-set testfile "dw2-op-stack-value" |
-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 "p/x stack2" " = 0x1" |
gdb_test "p/x stack8" " = 0x1" |