From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17439 invoked by alias); 31 Mar 2014 02:58:58 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 17418 invoked by uid 89); 31 Mar 2014 02:58:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: ozlabs.org Received: from ozlabs.org (HELO ozlabs.org) (203.10.76.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 31 Mar 2014 02:58:56 +0000 Received: by ozlabs.org (Postfix, from userid 1010) id 6666D1400DC; Mon, 31 Mar 2014 13:58:53 +1100 (EST) From: Anton Blanchard To: gdb-patches@sourceware.org, brobecker@adacore.com, emachado@linux.vnet.ibm.com, luis_gustavo@mentor.com, ulrich.weigand@de.ibm.com, palves@redhat.com Subject: [PATCH 2/3] gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile, prepare_for_testing. Date: Mon, 31 Mar 2014 02:58:00 -0000 Message-Id: <1396234730-12149-2-git-send-email-anton@samba.org> In-Reply-To: <1396234730-12149-1-git-send-email-anton@samba.org> References: <1396234730-12149-1-git-send-email-anton@samba.org> X-SW-Source: 2014-03/txt/msg00684.txt.bz2 gdb/testsuite/ 2014-03-31 Anton Blanchard * 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