From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17585 invoked by alias); 31 Mar 2014 02:59:00 -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 17440 invoked by uid 89); 31 Mar 2014 02:58:58 -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:57 +0000 Received: by ozlabs.org (Postfix, from userid 1010) id 3B3CD1400DF; Mon, 31 Mar 2014 13:58:55 +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 3/3] gdb.arch/ppc64-atomic-inst.exp: Improve error handling. Date: Mon, 31 Mar 2014 02:59:00 -0000 Message-Id: <1396234730-12149-3-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/msg00685.txt.bz2 gdb/testsuite/ 2014-03-31 Anton Blanchard * gdb.arch/ppc64-atomic-inst.exp: Use untested. Make test messages unique. --- gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp index fc7568c..ff26697 100644 --- a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp +++ b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp @@ -33,26 +33,26 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug quiet}] } if ![runto_main] then { - perror "Couldn't run to breakpoint" - continue + untested "could not run to main" + return -1 } set bp1 [gdb_get_line_number "lwarx"] gdb_breakpoint "$bp1" "Breakpoint $decimal at $hex" \ - "Set the breakpoint at the start of the sequence" + "Set the breakpoint at the start of the lwarx/stwcx sequence" set bp2 [gdb_get_line_number "ldarx"] gdb_breakpoint "$bp2" "Breakpoint $decimal at $hex" \ - "Set the breakpoint at the start of the sequence" + "Set the breakpoint at the start of the ldarx/stdcx sequence" gdb_test continue "Continuing.*Breakpoint $decimal.*" \ - "Continue until breakpoint" + "Continue until lwarx/stwcx start breakpoint" gdb_test nexti "bne.*1b" \ "Step through the lwarx/stwcx sequence" gdb_test continue "Continuing.*Breakpoint $decimal.*" \ - "Continue until breakpoint" + "Continue until ldarx/stdcx start breakpoint" gdb_test nexti "bne.*1b" \ - "Step through the lwarx/stwcx sequence" + "Step through the ldarx/stdcx sequence" -- 1.8.3.2