From patchwork Fri Sep 2 08:55:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Qi X-Patchwork-Id: 15177 Received: (qmail 90956 invoked by alias); 2 Sep 2016 08:55:54 -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 90937 invoked by uid 89); 2 Sep 2016 08:55:53 -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, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1276 X-HELO: mail-pf0-f193.google.com Received: from mail-pf0-f193.google.com (HELO mail-pf0-f193.google.com) (209.85.192.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Sep 2016 08:55:43 +0000 Received: by mail-pf0-f193.google.com with SMTP id h186so5536574pfg.2 for ; Fri, 02 Sep 2016 01:55:43 -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=EozWKk+7UM2M07s4kD6Whs1oGTbSoZMCSBPYPf+nsEw=; b=dlELy018q+4Awohc33F1dLSm4eIhQNurt69DJo30utvxjLgFmloX1xH1uKTz4xDBI/ whvMmDRoXeE5hEP0Xkt4YJQ0aMI3RC+1qAc3goi5POj6TbTWAIbvMSyOB0ruh2AqYRAZ 6Q66bljzemjRRSTrEPvIW7UHJGPwyfz0vUHAUPo7t1uda8TOc8LNZD4nPKSOTHERG1yx mlNbblQcrzwK/XaHZUvGpo2Rb/2D//Fa8SqSqN5DjuYwgkBPw3doxFAESDmGnS9UDJkp N/1CcC+0qwVeW0oiPLk4Vtsb9P+cAnZc3LeOvIqUHdJdgHQF+UeAIUC8aSAXokab0sIb 7AcQ== X-Gm-Message-State: AE9vXwNtaTw2Tw/5QmwwEJi4Ytmk43HJ5pTmHFc7N1tXRupJdr3wMGZ6kwWfwXeC5xL+1w== X-Received: by 10.98.71.91 with SMTP id u88mr34630094pfa.145.1472806541461; Fri, 02 Sep 2016 01:55:41 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (gcc115.osuosl.org. [140.211.9.73]) by smtp.gmail.com with ESMTPSA id o2sm13061904pfg.10.2016.09.02.01.55.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Sep 2016 01:55:41 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH] Skip floating point tests in return-nodebug.exp if gdb_skip_stdio_test is true Date: Fri, 2 Sep 2016 09:55:36 +0100 Message-Id: <1472806536-11600-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes return-nodebug.exp does the test for various types, but we shouldn't test with floating point type if gdb_skip_float_test returns true. gdb/testsuite: 2016-09-02 Yao Qi * gdb.base/return-nodebug.exp: Skip the test if skip_float_test is true and $type is "float" or "double". --- gdb/testsuite/gdb.base/return-nodebug.exp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gdb/testsuite/gdb.base/return-nodebug.exp b/gdb/testsuite/gdb.base/return-nodebug.exp index e44494f..0d58ba5 100644 --- a/gdb/testsuite/gdb.base/return-nodebug.exp +++ b/gdb/testsuite/gdb.base/return-nodebug.exp @@ -13,6 +13,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +set skip_float_test [gdb_skip_float_test] + proc do_test {type} { set typenospace [string map {{ } -} $type] @@ -42,6 +44,9 @@ proc do_test {type} { } foreach type {{signed char} {short} {int} {long} {long long} {float} {double}} { + if { $skip_float_test && ($type == "float" || $type == "double") } { + continue + } set typeesc [string map {{ } {\ }} $type] set typenospace [string map {{ } -} $type]