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.
This commit is contained in:
Anton Blanchard 2014-03-31 12:03:01 +11:00
parent 62f7182c14
commit 3114cea14b
2 changed files with 7 additions and 11 deletions

View 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.

View 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