Index: gdb/testsuite/gdb.mi/mi-var-invalidate.exp |
diff --git a/gdb/testsuite/gdb.mi/mi-var-invalidate.exp b/gdb/testsuite/gdb.mi/mi-var-invalidate.exp |
index f389e32b2fc5e45efb52c77a0e0803c2e70a336d..3ecbbdf67d818f18b3b6e33ba2e09de24e6ca822 100644 |
--- a/gdb/testsuite/gdb.mi/mi-var-invalidate.exp |
+++ b/gdb/testsuite/gdb.mi/mi-var-invalidate.exp |
@@ -28,24 +28,23 @@ if [mi_gdb_start] { |
continue |
} |
-set testfile "var-cmd" |
-set srcfile ${testfile}.c |
-set binfile ${objdir}/${subdir}/mi-var-invalidate |
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } { |
+standard_testfile var-cmd.c |
+ |
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { |
untested mi-var-invalidate.exp |
return -1 |
} |
# Just change the output binary. |
-set binfile_bis ${objdir}/${subdir}/mi-var-invalidate_bis |
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile_bis}" executable {debug additional_flags=-DFAKEARGV}] != "" } { |
+set binfile_bis [standard_output_file mi-var-invalidate_bis] |
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile_bis}" executable {debug}] != "" } { |
untested mi-var-invalidate.exp |
return -1 |
} |
set testfile2 "basics" |
set srcfile2 ${testfile2}.c |
-set binfile2 ${objdir}/${subdir}/${testfile2} |
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug additional_flags=-DFAKEARGV}] != "" } { |
+set binfile2 [standard_output_file ${testfile2}] |
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {debug}] != "" } { |
untested mi-var-invalidate.exp |
return -1 |
} |