From patchwork Mon Mar 31 02:58:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Blanchard X-Patchwork-Id: 352 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx21.g.dreamhost.com (peon2454.g.dreamhost.com [208.113.200.127]) by wilcox.dreamhost.com (Postfix) with ESMTP id C83B4360605 for ; Sun, 30 Mar 2014 19:59:12 -0700 (PDT) Received: by homiemail-mx21.g.dreamhost.com (Postfix, from userid 14314964) id 7587BE6588E; Sun, 30 Mar 2014 19:59:12 -0700 (PDT) X-Original-To: gdb@patchwork.siddhesh.in Delivered-To: x14314964@homiemail-mx21.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx21.g.dreamhost.com (Postfix) with ESMTPS id 497B8DCF758 for ; Sun, 30 Mar 2014 19:59:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=H5P1nPOG4fVpBMZh0ZH+CYJtDKEtNbW 0bdUTGUPxg+QGU3XpfgBoWC8v5KEtF1LGkeFdi7qhWCPK27ezoepk9W9wwH0nq2D vE+Ni3QS+e24sHbaByU7iAc45tCMji+shAiyCiquuY7EAZ5fgKqcdFNzJQHhPi8h iZHmL7QEFwyc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=Qwcst5Uln86dnEoff/GjCNJIEfE=; b=iUVdZ XgPJLwweDf0KhjOT1JWIEjtggLB0ZX/jG1RGNSvH/2h9yyX3Z+RSmgxwJgoBn58P E/JYeYLrEKrmJJ4WmmOvZD0v/XR0n8NBDk01OZGnqlRJK38fHoGiTIQ3eTUcX2+o Mm+2GEyr1ZaeMCDzD2gJgVtsoYG6EmIcr44B0c= 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-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@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 13:58:50 +1100 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-DH-Original-To: gdb@patchwork.siddhesh.in 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"