From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from outbound-ss-761.bluehost.com (outbound-ss-761.bluehost.com [74.220.211.250]) by sourceware.org (Postfix) with ESMTPS id 8E5703860C3F for ; Thu, 12 Jan 2023 03:01:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8E5703860C3F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com Received: from cmgw10.mail.unifiedlayer.com (unknown [10.0.90.125]) by progateway8.mail.pro1.eigbox.com (Postfix) with ESMTP id 0CE0910043B26 for ; Thu, 12 Jan 2023 03:01:39 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id FnqVplLuLLXXpFnqVp4kSx; Thu, 12 Jan 2023 03:01:39 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=KvyIZUaN c=1 sm=1 tr=0 ts=63bf7813 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=RvmDmJFTN0MA:10:nop_rcvd_month_year a=Qbun_eYptAEA:10:endurance_base64_authed_username_1 a=mDV3o1hIAAAA:8 a=JiUPJArdijCTvLzgekIA:9 a=_FVE-zBwftR9WsbkzFJk:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TTElu847ebMU39blTBHewix+vc0pkNIjTQ49LMLEbPU=; b=J6bFydaFVzH8v6OhowpJbc2iMw exoo2uYCW5e277dfSxWTCGKIX0HolGs7QTZOCa+ZFlnVeehWZsF8NMLx5yjfaGaRCySEqa4HktBbJ 0R7UPU78euvvE1rUd/ArntM5f; Received: from 97-122-76-186.hlrn.qwest.net ([97.122.76.186]:60784 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pFnqU-000lzh-QM; Wed, 11 Jan 2023 20:01:38 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH v2 56/79] Rename to allow_btrace_pt_tests Date: Wed, 11 Jan 2023 20:00:29 -0700 Message-Id: <20230112030052.3306113-57-tom@tromey.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230112030052.3306113-1-tom@tromey.com> References: <20230112030052.3306113-1-tom@tromey.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.76.186 X-Source-L: No X-Exim-ID: 1pFnqU-000lzh-QM X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-76-186.hlrn.qwest.net (localhost.localdomain) [97.122.76.186]:60784 X-Source-Auth: tom+tromey.com X-Email-Count: 57 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-Spam-Status: No, score=-3028.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This changes skip_btrace_pt_tests to invert the sense, and renames it to allow_btrace_pt_tests. --- gdb/testsuite/gdb.btrace/tsx.exp | 2 +- gdb/testsuite/lib/gdb.exp | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/gdb/testsuite/gdb.btrace/tsx.exp b/gdb/testsuite/gdb.btrace/tsx.exp index 2a8d29de8ed..222c352c368 100644 --- a/gdb/testsuite/gdb.btrace/tsx.exp +++ b/gdb/testsuite/gdb.btrace/tsx.exp @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -require !skip_btrace_pt_tests !skip_tsx_tests +require allow_btrace_pt_tests !skip_tsx_tests standard_testfile .c x86-tsx.S if [prepare_for_testing "failed to prepare" $testfile "$srcfile $srcfile2" {debug}] { diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 4959af6b2c4..8d817dfa682 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -3852,22 +3852,22 @@ gdb_caching_proc skip_btrace_tests { } # Run a test on the target to see if it supports btrace pt hardware. -# Return 0 if so, 1 if it does not. Based on 'check_vmx_hw_available' +# Return 1 if so, 0 if it does not. Based on 'check_vmx_hw_available' # from the GCC testsuite. -gdb_caching_proc skip_btrace_pt_tests { +gdb_caching_proc allow_btrace_pt_tests { global srcdir subdir gdb_prompt inferior_exited_re - set me "skip_btrace_tests" + set me "allow_btrace_pt_tests" if { ![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] } { - verbose "$me: target does not support btrace, returning 1" 2 - return 1 + verbose "$me: target does not support btrace, returning 1" 2 + return 0 } # Compile a test program. set src { int main() { return 0; } } if {![gdb_simple_compile $me $src executable]} { - return 1 + return 0 } # No error message, compilation succeeded so now run it via gdb. @@ -3877,32 +3877,32 @@ gdb_caching_proc skip_btrace_pt_tests { gdb_reinitialize_dir $srcdir/$subdir gdb_load $obj if ![runto_main] { - return 1 + return 0 } # In case of an unexpected output, we return 2 as a fail value. - set skip_btrace_tests 2 + set allow_btrace_pt_tests 2 gdb_test_multiple "record btrace pt" "check btrace pt support" { -re "You can't do that when your target is.*\r\n$gdb_prompt $" { - set skip_btrace_tests 1 + set allow_btrace_pt_tests 0 } -re "Target does not support branch tracing.*\r\n$gdb_prompt $" { - set skip_btrace_tests 1 + set allow_btrace_pt_tests 0 } -re "Could not enable branch tracing.*\r\n$gdb_prompt $" { - set skip_btrace_tests 1 + set allow_btrace_pt_tests 0 } -re "support was disabled at compile time.*\r\n$gdb_prompt $" { - set skip_btrace_tests 1 + set allow_btrace_pt_tests 0 } -re "^record btrace pt\r\n$gdb_prompt $" { - set skip_btrace_tests 0 + set allow_btrace_pt_tests 1 } } gdb_exit remote_file build delete $obj - verbose "$me: returning $skip_btrace_tests" 2 - return $skip_btrace_tests + verbose "$me: returning $allow_btrace_pt_tests" 2 + return $allow_btrace_pt_tests } # Run a test on the target to see if it supports Aarch64 SVE hardware. -- 2.39.0