From patchwork Wed Apr 27 15:13:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 11911 Received: (qmail 124921 invoked by alias); 27 Apr 2016 15:13:37 -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 124911 invoked by uid 89); 27 Apr 2016 15:13:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-pa0-f52.google.com Received: from mail-pa0-f52.google.com (HELO mail-pa0-f52.google.com) (209.85.220.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 27 Apr 2016 15:13:26 +0000 Received: by mail-pa0-f52.google.com with SMTP id r5so20623193pag.1 for ; Wed, 27 Apr 2016 08:13:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=kXkvEsGprBD5Hjfh8d1TIhug0I/U31AvIYTZJHxd+So=; b=RzPWITmE19Ai5H7FdatyJMmLRC91nDThgzho8XS8TF2b0CcXd4o4aTvLrJihbIp6I5 aFyAEy1Ls1LISTAZbNSmSl3JH0SOplMIHaulgYpuUrtmKnnihbf/Uy9ZPix6M57RaZJf +fLSylYz7+QhTtc103Nm3Lt3HpQU4KRZBay92/n57VIRBsMXYEeLTM3BRbgo1L7o5MNQ yHq4lkHgY8xz1++rvVxCZlqS5c0rAscQL1AcRZoTIhpeqpry59eQ9Ae1wI4zhBdpGCga iVLTA0lgC+wD1uBV93B3FfJaZOy8ARCmV3rnpguZopnX+ifP2EGE4ekjmRrgCd3+/mI1 kkNg== X-Gm-Message-State: AOPr4FWnyQ6n0eW14rej3yiUtuleWM78Xq8cepjk8AJE+LlgxiUO5ie5Ar114tqSpnXsCA== X-Received: by 10.66.244.233 with SMTP id xj9mr12692551pac.19.1461770004709; Wed, 27 Apr 2016 08:13:24 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id t14sm7375124pfj.12.2016.04.27.08.13.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Apr 2016 08:13:24 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH OBV] Skip gdb.base/branch-to-self.exp if gdb, nosignals exists Date: Wed, 27 Apr 2016 16:13:18 +0100 Message-Id: <1461769998-18194-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes I get a timeout fail in branch-to-self.exp when it is compiled by a bare-mental target running qemu, which doesn't have signal. The test should be skipped if gdb,nosignals exists, and that is what this patch does. I'll commit it. gdb/testsuite: 2016-04-27 Yao Qi * gdb.base/branch-to-self.exp: Skip it if gdb,nosignals exists. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/branch-to-self.exp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 92eb9ff..4d3e6df 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-04-27 Yao Qi + + * gdb.base/branch-to-self.exp: Skip it if gdb,nosignals + exists. + 2016-04-26 Bernhard Heckel * vla-type.exp: Print structure from toplevel. diff --git a/gdb/testsuite/gdb.base/branch-to-self.exp b/gdb/testsuite/gdb.base/branch-to-self.exp index 2fd3b38..4db502c 100644 --- a/gdb/testsuite/gdb.base/branch-to-self.exp +++ b/gdb/testsuite/gdb.base/branch-to-self.exp @@ -15,6 +15,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +if [target_info exists gdb,nosignals] { + verbose "Skipping branch-to-self.exp because of nosignals." + continue +} + standard_testfile if { [build_executable ${testfile}.exp ${testfile} $srcfile {debug}] == -1 } {