Index: gdb/testsuite/gdb.cp/psymtab-parameter.exp |
diff --git a/gdb/testsuite/gdb.cp/psymtab-parameter.exp b/gdb/testsuite/gdb.cp/psymtab-parameter.exp |
index 1d6050714c16273f884f2e5cba1518babe95994f..c74fa8bcee13f0e613f0e6096f8993858f8ef4d9 100644 |
--- a/gdb/testsuite/gdb.cp/psymtab-parameter.exp |
+++ b/gdb/testsuite/gdb.cp/psymtab-parameter.exp |
@@ -15,18 +15,14 @@ |
if { [skip_cplus_tests] } { continue } |
+standard_testfile .cc |
-set testfile psymtab-parameter |
-set executable ${testfile}.x |
-set srcfile ${testfile}.cc |
-set binfile ${objdir}/${subdir}/${executable} |
- |
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" object {debug c++}] != "" } { |
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}.x" object {debug c++}] != "" } { |
untested ${testfile}.exp |
return -1 |
} |
-clean_restart $executable |
+clean_restart $testfile.x |
# As `main' is not present GDB fails to find the proper inferior language. |
gdb_test_no_output "set language c++" |