From patchwork Thu Nov 28 00:44:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Simon Marchi (Code Review)" X-Patchwork-Id: 36338 Received: (qmail 82179 invoked by alias); 28 Nov 2019 00:44:13 -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 81990 invoked by uid 89); 28 Nov 2019 00:44:12 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy= X-HELO: mx1.osci.io Received: from polly.osci.io (HELO mx1.osci.io) (8.43.85.229) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Nov 2019 00:44:11 +0000 Received: by mx1.osci.io (Postfix, from userid 994) id CF2CD201A5; Wed, 27 Nov 2019 19:44:09 -0500 (EST) Received: from gnutoolchain-gerrit.osci.io (gnutoolchain-gerrit.osci.io [8.43.85.239]) by mx1.osci.io (Postfix) with ESMTP id CC57C201A5; Wed, 27 Nov 2019 19:44:07 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by gnutoolchain-gerrit.osci.io (Postfix) with ESMTP id AAFAE28173; Wed, 27 Nov 2019 19:44:07 -0500 (EST) X-Gerrit-PatchSet: 2 Date: Wed, 27 Nov 2019 19:44:07 -0500 From: "Sourceware to Gerrit sync (Code Review)" To: Andrew Burgess , gdb-patches@sourceware.org Auto-Submitted: auto-generated X-Gerrit-MessageType: merged Subject: [pushed] gdb/testsuite: Fix minor bug in skip_btrace*tests procs X-Gerrit-Change-Id: I6dfc04b4adcf5b9424fb542ece7ddbe751bee301 X-Gerrit-Change-Number: 685 X-Gerrit-ChangeURL: X-Gerrit-Commit: dcdec67858b1db5a91c1947569d6085310bfabe6 In-Reply-To: References: Reply-To: noreply@gnutoolchain-gerrit.osci.io, andrew.burgess@embecosm.com, gdb-patches@sourceware.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Gerrit/3.0.3-79-g83ff7f88f1 Message-Id: <20191128004407.AAFAE28173@gnutoolchain-gerrit.osci.io> Sourceware to Gerrit sync has submitted this change. Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/685 ...................................................................... gdb/testsuite: Fix minor bug in skip_btrace*tests procs The two guard functions skip_btrace_tests and skip_btrace_pt_tests have a minor bug, if the check function fails to compile then surely we should skip the btrace tests - currently we return 0 to indicate don't skip. gdb/testsuite/ChangeLog: * lib/gdb.exp (skip_btrace_tests): Return 1 if the test fails to compile. (skip_btrace_pt_tests): Likewise. Change-Id: I6dfc04b4adcf5b9424fb542ece7ddbe751bee301 --- M gdb/testsuite/ChangeLog M gdb/testsuite/lib/gdb.exp 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 86f2130..6b520e1 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-11-28 Andrew Burgess + + * lib/gdb.exp (skip_btrace_tests): Return 1 if the test fails to + compile. + (skip_btrace_pt_tests): Likewise. + 2019-11-27 Andrew Burgess * gdb.fortran/info-modules.exp: Compile source files in correct diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 828c91d..4682f5d 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2942,7 +2942,7 @@ # Compile a test program. set src { int main() { return 0; } } if {![gdb_simple_compile $me $src executable]} { - return 0 + return 1 } # No error message, compilation succeeded so now run it via gdb. @@ -2993,7 +2993,7 @@ # Compile a test program. set src { int main() { return 0; } } if {![gdb_simple_compile $me $src executable]} { - return 0 + return 1 } # No error message, compilation succeeded so now run it via gdb.