Index: gdb/testsuite/gdb.multi/base.exp |
diff --git a/gdb/testsuite/gdb.multi/base.exp b/gdb/testsuite/gdb.multi/base.exp |
index 70cbc4637be27f2dddb7bb80612d0eeb86708db6..172eb416ff880a7dfe952bb46f0646d972c87f82 100644 |
--- a/gdb/testsuite/gdb.multi/base.exp |
+++ b/gdb/testsuite/gdb.multi/base.exp |
@@ -20,25 +20,25 @@ set testfile "base" |
set exec1 "hello" |
set srcfile1 ${exec1}.c |
-set binfile1 ${objdir}/${subdir}/${exec1} |
+set binfile1 [standard_output_file ${exec1}] |
set exec2 "hangout" |
set srcfile2 ${exec2}.c |
-set binfile2 ${objdir}/${subdir}/${exec2} |
+set binfile2 [standard_output_file ${exec2}] |
set exec3 "goodbye" |
set srcfile3 ${exec3}.c |
-set binfile3 ${objdir}/${subdir}/${exec3} |
+set binfile3 [standard_output_file ${exec3}] |
-if { [prepare_for_testing ${testfile}.exp ${exec1} "${srcfile1}" {debug nowarnings}] } { |
+if { [build_executable ${testfile}.exp ${exec1} "${srcfile1}" {debug nowarnings}] == -1 } { |
return -1 |
} |
-if { [prepare_for_testing ${testfile}.exp ${exec2} "${srcfile2}" {debug nowarnings}] } { |
+if { [build_executable ${testfile}.exp ${exec2} "${srcfile2}" {debug nowarnings}] == -1} { |
return -1 |
} |
-if { [prepare_for_testing ${testfile}.exp ${exec3} "${srcfile3}" {debug nowarnings}] } { |
+if { [build_executable ${testfile}.exp ${exec3} "${srcfile3}" {debug nowarnings}] == -1 } { |
return -1 |
} |