From patchwork Thu Jan 12 03:00:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 63043 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 66E06396E829 for ; Thu, 12 Jan 2023 03:06:23 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from alt-proxy28.mail.unifiedlayer.com (alt-proxy28.mail.unifiedlayer.com [74.220.216.123]) by sourceware.org (Postfix) with ESMTPS id 3C5D938493FB for ; Thu, 12 Jan 2023 03:01:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C5D938493FB 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 cmgw11.mail.unifiedlayer.com (unknown [10.0.90.126]) by progateway1.mail.pro1.eigbox.com (Postfix) with ESMTP id B62051003F5E8 for ; Thu, 12 Jan 2023 03:01:30 +0000 (UTC) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTP id FnqMp34wJFxgHFnqMpCGne; Thu, 12 Jan 2023 03:01:30 +0000 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.4 cv=ePfWMFl1 c=1 sm=1 tr=0 ts=63bf780a 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=USroW288tnGdgFkNXCYA:9 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=QJu0CuK1aS0MlzfuSakFK8NEG+coKf0UMSBxrZiBazs=; b=i7AJDps0cqgmhiBHjp2q7EGid6 VgePHsYMs4Uv56nEMlDDXpXrgPh/ix2B9FhBv2LbYEQpkzL1vI//Y63VuWYT3sbg5BsMriwB3vqk2 pJysLL+MaIUfJrW126FZmWJTz; Received: from 97-122-76-186.hlrn.qwest.net ([97.122.76.186]:38160 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 1pFnqM-000lq2-Ex; Wed, 11 Jan 2023 20:01:30 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH v2 41/79] Use require skip_perf_tests Date: Wed, 11 Jan 2023 20:00:14 -0700 Message-Id: <20230112030052.3306113-42-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 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: 1pFnqM-000lq2-Ex X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-76-186.hlrn.qwest.net (localhost.localdomain) [97.122.76.186]:38160 X-Source-Auth: tom+tromey.com X-Email-Count: 42 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, 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" This changes some tests to use "require skip_perf_tests". --- gdb/testsuite/gdb.perf/backtrace.exp | 4 +--- gdb/testsuite/gdb.perf/disassemble.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster1-null-lookup.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster1-pervasive-typedef.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster1-print-cerr.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster1-ptype-string.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster1-runto-main.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster1-select-file.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster1.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster2-null-lookup.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster2-pervasive-typedef.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster2-print-cerr.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster2-ptype-string.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster2-runto-main.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster2-select-file.exp | 4 +--- gdb/testsuite/gdb.perf/gmonster2.exp | 4 +--- gdb/testsuite/gdb.perf/single-step.exp | 4 +--- gdb/testsuite/gdb.perf/skip-command.exp | 4 +--- gdb/testsuite/gdb.perf/skip-prologue.exp | 4 +--- gdb/testsuite/gdb.perf/solib.exp | 4 +--- gdb/testsuite/gdb.perf/template-breakpoints.exp | 4 +--- 21 files changed, 21 insertions(+), 63 deletions(-) diff --git a/gdb/testsuite/gdb.perf/backtrace.exp b/gdb/testsuite/gdb.perf/backtrace.exp index 0602beca648..d8b046b5cd1 100644 --- a/gdb/testsuite/gdb.perf/backtrace.exp +++ b/gdb/testsuite/gdb.perf/backtrace.exp @@ -21,9 +21,7 @@ load_lib perftest.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests standard_testfile .c set executable $testfile diff --git a/gdb/testsuite/gdb.perf/disassemble.exp b/gdb/testsuite/gdb.perf/disassemble.exp index 1886028d32b..ee33dcf0481 100644 --- a/gdb/testsuite/gdb.perf/disassemble.exp +++ b/gdb/testsuite/gdb.perf/disassemble.exp @@ -17,9 +17,7 @@ # some large functions in GDB. load_lib perftest.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests global GDB diff --git a/gdb/testsuite/gdb.perf/gmonster1-null-lookup.exp b/gdb/testsuite/gdb.perf/gmonster1-null-lookup.exp index b3b3948fa42..1c17cd7f450 100644 --- a/gdb/testsuite/gdb.perf/gmonster1-null-lookup.exp +++ b/gdb/testsuite/gdb.perf/gmonster1-null-lookup.exp @@ -19,8 +19,6 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests GenPerfTest::standard_run_driver gmonster1.exp make_testcase_config gmonster-null-lookup.py NullLookup diff --git a/gdb/testsuite/gdb.perf/gmonster1-pervasive-typedef.exp b/gdb/testsuite/gdb.perf/gmonster1-pervasive-typedef.exp index 7f7ca513298..ae175f3a1ef 100644 --- a/gdb/testsuite/gdb.perf/gmonster1-pervasive-typedef.exp +++ b/gdb/testsuite/gdb.perf/gmonster1-pervasive-typedef.exp @@ -21,8 +21,6 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests GenPerfTest::standard_run_driver gmonster1.exp make_testcase_config gmonster-pervasive-typedef.py PervasiveTypedef diff --git a/gdb/testsuite/gdb.perf/gmonster1-print-cerr.exp b/gdb/testsuite/gdb.perf/gmonster1-print-cerr.exp index e5fbe93f4cd..54f7f00b42b 100644 --- a/gdb/testsuite/gdb.perf/gmonster1-print-cerr.exp +++ b/gdb/testsuite/gdb.perf/gmonster1-print-cerr.exp @@ -19,8 +19,6 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests GenPerfTest::standard_run_driver gmonster1.exp make_testcase_config gmonster-print-cerr.py PrintCerr diff --git a/gdb/testsuite/gdb.perf/gmonster1-ptype-string.exp b/gdb/testsuite/gdb.perf/gmonster1-ptype-string.exp index a9217625754..f37cead361f 100644 --- a/gdb/testsuite/gdb.perf/gmonster1-ptype-string.exp +++ b/gdb/testsuite/gdb.perf/gmonster1-ptype-string.exp @@ -19,8 +19,6 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests GenPerfTest::standard_run_driver gmonster1.exp make_testcase_config gmonster-ptype-string.py GmonsterPtypeString diff --git a/gdb/testsuite/gdb.perf/gmonster1-runto-main.exp b/gdb/testsuite/gdb.perf/gmonster1-runto-main.exp index f416af13d24..8b4311ed43d 100644 --- a/gdb/testsuite/gdb.perf/gmonster1-runto-main.exp +++ b/gdb/testsuite/gdb.perf/gmonster1-runto-main.exp @@ -19,8 +19,6 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests GenPerfTest::standard_run_driver gmonster1.exp make_testcase_config gmonster-runto-main.py GmonsterRuntoMain diff --git a/gdb/testsuite/gdb.perf/gmonster1-select-file.exp b/gdb/testsuite/gdb.perf/gmonster1-select-file.exp index e89e76c1a81..71b3d61b772 100644 --- a/gdb/testsuite/gdb.perf/gmonster1-select-file.exp +++ b/gdb/testsuite/gdb.perf/gmonster1-select-file.exp @@ -19,8 +19,6 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests GenPerfTest::standard_run_driver gmonster1.exp make_testcase_config gmonster-select-file.py GmonsterSelectFile diff --git a/gdb/testsuite/gdb.perf/gmonster1.exp b/gdb/testsuite/gdb.perf/gmonster1.exp index e918d9cd9de..900452501eb 100644 --- a/gdb/testsuite/gdb.perf/gmonster1.exp +++ b/gdb/testsuite/gdb.perf/gmonster1.exp @@ -36,9 +36,7 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests if ![info exists MONSTER] { set MONSTER "n" diff --git a/gdb/testsuite/gdb.perf/gmonster2-null-lookup.exp b/gdb/testsuite/gdb.perf/gmonster2-null-lookup.exp index e8d1631b422..353e6f12202 100644 --- a/gdb/testsuite/gdb.perf/gmonster2-null-lookup.exp +++ b/gdb/testsuite/gdb.perf/gmonster2-null-lookup.exp @@ -20,8 +20,6 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests GenPerfTest::standard_run_driver gmonster2.exp make_testcase_config gmonster-null-lookup.py NullLookup diff --git a/gdb/testsuite/gdb.perf/gmonster2-pervasive-typedef.exp b/gdb/testsuite/gdb.perf/gmonster2-pervasive-typedef.exp index 63eecc461aa..e37c1a4b2f6 100644 --- a/gdb/testsuite/gdb.perf/gmonster2-pervasive-typedef.exp +++ b/gdb/testsuite/gdb.perf/gmonster2-pervasive-typedef.exp @@ -21,8 +21,6 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests GenPerfTest::standard_run_driver gmonster2.exp make_testcase_config gmonster-pervasive-typedef.py PervasiveTypedef diff --git a/gdb/testsuite/gdb.perf/gmonster2-print-cerr.exp b/gdb/testsuite/gdb.perf/gmonster2-print-cerr.exp index 375f5b472e3..ccb9e733fb4 100644 --- a/gdb/testsuite/gdb.perf/gmonster2-print-cerr.exp +++ b/gdb/testsuite/gdb.perf/gmonster2-print-cerr.exp @@ -19,8 +19,6 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests GenPerfTest::standard_run_driver gmonster2.exp make_testcase_config gmonster-print-cerr.py PrintCerr diff --git a/gdb/testsuite/gdb.perf/gmonster2-ptype-string.exp b/gdb/testsuite/gdb.perf/gmonster2-ptype-string.exp index 5ab0dfc6dd3..a21fa349b7a 100644 --- a/gdb/testsuite/gdb.perf/gmonster2-ptype-string.exp +++ b/gdb/testsuite/gdb.perf/gmonster2-ptype-string.exp @@ -20,8 +20,6 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests GenPerfTest::standard_run_driver gmonster2.exp make_testcase_config gmonster-ptype-string.py GmonsterPtypeString diff --git a/gdb/testsuite/gdb.perf/gmonster2-runto-main.exp b/gdb/testsuite/gdb.perf/gmonster2-runto-main.exp index 641e185ec09..05e2ec37dca 100644 --- a/gdb/testsuite/gdb.perf/gmonster2-runto-main.exp +++ b/gdb/testsuite/gdb.perf/gmonster2-runto-main.exp @@ -19,8 +19,6 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests GenPerfTest::standard_run_driver gmonster2.exp make_testcase_config gmonster-runto-main.py GmonsterRuntoMain diff --git a/gdb/testsuite/gdb.perf/gmonster2-select-file.exp b/gdb/testsuite/gdb.perf/gmonster2-select-file.exp index 2aabfde0340..869f048e091 100644 --- a/gdb/testsuite/gdb.perf/gmonster2-select-file.exp +++ b/gdb/testsuite/gdb.perf/gmonster2-select-file.exp @@ -20,8 +20,6 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests GenPerfTest::standard_run_driver gmonster2.exp make_testcase_config gmonster-select-file.py GmonsterSelectFile diff --git a/gdb/testsuite/gdb.perf/gmonster2.exp b/gdb/testsuite/gdb.perf/gmonster2.exp index 618b5ce6116..bb0b76994b9 100644 --- a/gdb/testsuite/gdb.perf/gmonster2.exp +++ b/gdb/testsuite/gdb.perf/gmonster2.exp @@ -36,9 +36,7 @@ load_lib perftest.exp load_lib gen-perf-test.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests if ![info exists MONSTER] { set MONSTER "n" diff --git a/gdb/testsuite/gdb.perf/single-step.exp b/gdb/testsuite/gdb.perf/single-step.exp index 64d1a907fc8..b46f838ea8c 100644 --- a/gdb/testsuite/gdb.perf/single-step.exp +++ b/gdb/testsuite/gdb.perf/single-step.exp @@ -19,9 +19,7 @@ load_lib perftest.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests standard_testfile .c set executable $testfile diff --git a/gdb/testsuite/gdb.perf/skip-command.exp b/gdb/testsuite/gdb.perf/skip-command.exp index 07498ecd687..c0019331cac 100644 --- a/gdb/testsuite/gdb.perf/skip-command.exp +++ b/gdb/testsuite/gdb.perf/skip-command.exp @@ -25,9 +25,7 @@ load_lib perftest.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests standard_testfile .cc skip-funcs.cc set executable $testfile diff --git a/gdb/testsuite/gdb.perf/skip-prologue.exp b/gdb/testsuite/gdb.perf/skip-prologue.exp index 49356ec81a5..aaa0bbfe6ff 100644 --- a/gdb/testsuite/gdb.perf/skip-prologue.exp +++ b/gdb/testsuite/gdb.perf/skip-prologue.exp @@ -21,9 +21,7 @@ load_lib perftest.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests standard_testfile .c set executable $testfile diff --git a/gdb/testsuite/gdb.perf/solib.exp b/gdb/testsuite/gdb.perf/solib.exp index 5ebc08be763..95d014090f8 100644 --- a/gdb/testsuite/gdb.perf/solib.exp +++ b/gdb/testsuite/gdb.perf/solib.exp @@ -24,9 +24,7 @@ load_lib perftest.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests standard_testfile .c set executable $testfile diff --git a/gdb/testsuite/gdb.perf/template-breakpoints.exp b/gdb/testsuite/gdb.perf/template-breakpoints.exp index f3aa124d3be..fae5c24681c 100644 --- a/gdb/testsuite/gdb.perf/template-breakpoints.exp +++ b/gdb/testsuite/gdb.perf/template-breakpoints.exp @@ -21,9 +21,7 @@ load_lib perftest.exp -if [skip_perf_tests] { - return 0 -} +require !skip_perf_tests standard_testfile .cc set executable $testfile