From: Anton Blanchard Date: Mon, 31 Mar 2014 01:03:01 +0000 (+1100) Subject: gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile, prepare_for_testing. X-Git-Tag: gdb-7.8-branchpoint~585 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3114cea14b326c1d429388559f020103108b3019;p=thirdparty%2Fbinutils-gdb.git gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile, prepare_for_testing. gdb/testsuite/ 2014-04-01 Anton Blanchard * gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile, prepare_for_testing. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 944635f986c..80b31d8b121 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-04-01 Anton Blanchard + + * gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile, + prepare_for_testing. + 2014-04-01 Anton Blanchard * gdb.arch/ppc64-atomic-inst.c: Remove. diff --git a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp index cefdfc997e9..fc7568c073e 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