* gdb.multi/watchpoint-multi.exp: Use standard_testfile.
authorTom Tromey <tromey@redhat.com>
Mon, 25 Jun 2012 21:07:32 +0000 (21:07 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 25 Jun 2012 21:07:32 +0000 (21:07 +0000)
* gdb.multi/bkpt-multi-exec.exp: Use standard_output_file.  Use
build_executable, not prepare_for_testing.
* gdb.multi/base.exp: Use standard_output_file.  Use
build_executable,  not prepare_for_testing.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.multi/base.exp
gdb/testsuite/gdb.multi/bkpt-multi-exec.exp
gdb/testsuite/gdb.multi/watchpoint-multi.exp

index 44637aae6c37295a3c0ee6d89e94b171a24165ee..86c351cb9baaabcd8dc3a24c204cf4089b291344 100644 (file)
@@ -1,3 +1,11 @@
+2012-06-25  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.multi/watchpoint-multi.exp: Use standard_testfile.
+       * gdb.multi/bkpt-multi-exec.exp: Use standard_output_file.  Use
+       build_executable, not prepare_for_testing.
+       * gdb.multi/base.exp: Use standard_output_file.  Use
+       build_executable,  not prepare_for_testing.
+
 2012-06-25  Tom Tromey  <tromey@redhat.com>
 
        * gdb.fortran/subarray.exp: Use standard_testfile,
index 70cbc4637be27f2dddb7bb80612d0eeb86708db6..172eb416ff880a7dfe952bb46f0646d972c87f82 100644 (file)
@@ -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
 }
 
index 3893a79059b5bfc0b358bf4a5454312efd6fe8a1..6a76d0779ab21f668d0d469b3e7afe7ec135a146 100644 (file)
@@ -27,17 +27,17 @@ set testfile "bkpt-multi-exec"
 
 set exec1 "bkpt-multi-exec"
 set srcfile1 ${exec1}.c
-set binfile1 ${objdir}/${subdir}/${exec1}
+set binfile1 [standard_output_file ${exec1}]
 
 set exec2 "crashme"
 set srcfile2 ${exec2}.c
-set binfile2 ${objdir}/${subdir}/${exec2}
+set binfile2 [standard_output_file ${exec2}]
 
-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
 }
 
index bb5675bea42ec0a9e6d4f6f512d3e1fb6d194248..09d3f7c516e47958e1e3a60fbef7766acbf9f05e 100644 (file)
@@ -13,7 +13,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-set testfile "watchpoint-multi"
+standard_testfile
+set executable ${testfile}
 
 # Multiple inferiors are needed, therefore both native and extended gdbserver
 # modes are supported.  Only non-extended gdbserver is not supported.
@@ -29,10 +30,6 @@ if [skip_hw_watchpoint_access_tests] {
     return
 }
 
-set executable ${testfile}
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${executable}
-
 if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested ${testfile}.exp
     return -1
This page took 0.039005 seconds and 4 git commands to generate.