This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 2/3] gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile, prepare_for_testing.
- From: Anton Blanchard <anton at samba dot org>
- To: gdb-patches at sourceware dot org, brobecker at adacore dot com, emachado at linux dot vnet dot ibm dot com, luis_gustavo at mentor dot com, ulrich dot weigand at de dot ibm dot com, palves at redhat dot com
- Date: Mon, 31 Mar 2014 13:58:49 +1100
- Subject: [PATCH 2/3] gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile, prepare_for_testing.
- Authentication-results: sourceware.org; auth=none
- References: <1396234730-12149-1-git-send-email-anton at samba dot org>
gdb/testsuite/
2014-03-31 Anton Blanchard <anton@samba.org>
* gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile,
prepare_for_testing.
---
gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp | 13 ++-----------
1 file 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
--
1.8.3.2