aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-03-31 12:03:01 +1100
committerAnton Blanchard <anton@samba.org>2014-04-01 12:12:55 +1100
commit3114cea14b326c1d429388559f020103108b3019 (patch)
tree4eafe813ac3795196ac894b8ab871bee40dfd854 /gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
parent62f7182c14492421b8d59ba5c6640d6c27ad6ea2 (diff)
downloadgdb-3114cea14b326c1d429388559f020103108b3019.zip
gdb-3114cea14b326c1d429388559f020103108b3019.tar.gz
gdb-3114cea14b326c1d429388559f020103108b3019.tar.bz2
gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile, prepare_for_testing.
gdb/testsuite/ 2014-04-01 Anton Blanchard <anton@samba.org> * gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile, prepare_for_testing.
Diffstat (limited to 'gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp')
-rw-r--r--gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp13
1 files changed, 2 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
index cefdfc9..fc7568c 100644
--- a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
+++ b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
@@ -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