gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile, prepare_for_testing.
authorAnton Blanchard <anton@samba.org>
Mon, 31 Mar 2014 01:03:01 +0000 (12:03 +1100)
committerAnton Blanchard <anton@samba.org>
Tue, 1 Apr 2014 01:12:55 +0000 (12:12 +1100)
gdb/testsuite/
2014-04-01  Anton Blanchard  <anton@samba.org>

* gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile,
prepare_for_testing.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp

index 944635f986c4921eaf101ba133c6d6cc498ac98f..80b31d8b121a8f418b434ae59f741385c1b48f07 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-01  Anton Blanchard  <anton@samba.org>
+
+       * gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile,
+       prepare_for_testing.
+
 2014-04-01  Anton Blanchard  <anton@samba.org>
 
        * gdb.arch/ppc64-atomic-inst.c: Remove.
index cefdfc997e922bc709771bb589ae6a87adc90f6a..fc7568c073e28b30a7a0e9d515195fce4f300ac2 100644 (file)
@@ -26,21 +26,12 @@ if {![istarget "powerpc*"] || ![is_lp64_target]} {
     return
 }
 
-set testfile "ppc64-atomic-inst"
-set srcfile ${testfile}.S
-set binfile ${objdir}/${subdir}/${testfile}
-set compile_flags {debug quiet}
+standard_testfile .S
 
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $compile_flags] != "" } {
-    unsupported "Testcase compile failed."
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug quiet}] } {
     return -1
 }
 
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
 if ![runto_main] then {
     perror "Couldn't run to breakpoint"
     continue
This page took 0.039174 seconds and 4 git commands to generate.