From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 72A61385417F; Fri, 13 Jan 2023 20:38:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72A61385417F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673642330; bh=scqGzGc5BZRS98s6e384+izEJKbC3JTuf1rOnhZ3Oy0=; h=From:To:Subject:Date:From; b=ko0op/PXWXApqGbI68tIjDeFaxOaImJ/Yns6QslpPV+9L/lWhUgHI/21GhJ4NNht/ IJpNvyGQsrEl5/L0BLhhYU0ATfEqO1xNcKy9PK+kgZ9EXPCDPOLcopQTvjyB0lZUbz zdZxexbO6KAlcSObFCW0pmitKcp+XSK8LG7j+CTc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Rename to allow_ctf_tests X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 0b94d2b9aa06bcb6d1141e61d36c3a99620861fe X-Git-Newrev: 30ce6aa427da49fa944de6024387e9ab66f5db11 Message-Id: <20230113203850.72A61385417F@sourceware.org> Date: Fri, 13 Jan 2023 20:38:50 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D30ce6aa427da= 49fa944de6024387e9ab66f5db11 commit 30ce6aa427da49fa944de6024387e9ab66f5db11 Author: Tom Tromey Date: Sun Jan 8 10:48:33 2023 -0700 Rename to allow_ctf_tests =20 This changes skip_ctf_tests to invert the sense, and renames it to allow_ctf_tests. Diff: --- gdb/testsuite/gdb.base/ctf-constvars.exp | 2 +- gdb/testsuite/gdb.base/ctf-ptype.exp | 2 +- gdb/testsuite/gdb.base/cvexpr.exp | 2 +- gdb/testsuite/gdb.base/whatis.exp | 2 +- gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp | 2 +- gdb/testsuite/gdb.ctf/funcreturn.exp | 2 +- gdb/testsuite/gdb.ctf/multi.exp | 2 +- gdb/testsuite/lib/gdb.exp | 6 +++--- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/gdb/testsuite/gdb.base/ctf-constvars.exp b/gdb/testsuite/gdb.b= ase/ctf-constvars.exp index 7737401bbab..7b3c0f69da8 100644 --- a/gdb/testsuite/gdb.base/ctf-constvars.exp +++ b/gdb/testsuite/gdb.base/ctf-constvars.exp @@ -24,7 +24,7 @@ # const pointers to const vars # with mixed types. =20 -require !skip_ctf_tests +require allow_ctf_tests =20 standard_testfile .c =20 diff --git a/gdb/testsuite/gdb.base/ctf-ptype.exp b/gdb/testsuite/gdb.base/= ctf-ptype.exp index 4010cf4e15e..4a81993628e 100644 --- a/gdb/testsuite/gdb.base/ctf-ptype.exp +++ b/gdb/testsuite/gdb.base/ctf-ptype.exp @@ -15,7 +15,7 @@ =20 # This file is a subset of ptype.exp written by Rob Savoye. (rob@cygnus.co= m) =20 -require !skip_ctf_tests +require allow_ctf_tests =20 # Some tests require GCC. set gcc_compiled [is_c_compiler_gcc] diff --git a/gdb/testsuite/gdb.base/cvexpr.exp b/gdb/testsuite/gdb.base/cve= xpr.exp index 3d78936350a..bbaa7d4983b 100644 --- a/gdb/testsuite/gdb.base/cvexpr.exp +++ b/gdb/testsuite/gdb.base/cvexpr.exp @@ -497,7 +497,7 @@ lappend ctf_opts ldflags=3D-Wl,--strip-debug =20 # Build up the set of debug formats for which we will run this test. set specs { {dwarf {debug}} } -if ![skip_ctf_tests] { +if {[allow_ctf_tests]} { lappend specs [list ctf $ctf_opts] } =20 diff --git a/gdb/testsuite/gdb.base/whatis.exp b/gdb/testsuite/gdb.base/wha= tis.exp index 2da9aecc600..3736e78bbdc 100644 --- a/gdb/testsuite/gdb.base/whatis.exp +++ b/gdb/testsuite/gdb.base/whatis.exp @@ -592,7 +592,7 @@ lappend ctf_opts ldflags=3D-Wl,--ctf-variables =20 # Build up the set of debug formats for which we will run this test. set specs { {dwarf {debug}} } -if ![skip_ctf_tests] { +if {[allow_ctf_tests]} { lappend specs [list ctf $ctf_opts] } =20 diff --git a/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp b/gdb/testsuite/gdb.= ctf/cross-tu-cyclic.exp index 4ce178af2c0..0292e394646 100644 --- a/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp +++ b/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp @@ -15,7 +15,7 @@ =20 # This file is a subset of ptype.exp written by Rob Savoye. (rob@cygnus.co= m) =20 -require !skip_ctf_tests +require allow_ctf_tests =20 standard_testfile cross-tu-cyclic-1.c cross-tu-cyclic-2.c \ cross-tu-cyclic-3.c cross-tu-cyclic-4.c diff --git a/gdb/testsuite/gdb.ctf/funcreturn.exp b/gdb/testsuite/gdb.ctf/f= uncreturn.exp index a65a1cbf7ad..64ed031f693 100644 --- a/gdb/testsuite/gdb.ctf/funcreturn.exp +++ b/gdb/testsuite/gdb.ctf/funcreturn.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_ctf_tests +require allow_ctf_tests =20 if [target_info exists no_long_long] { set exec_opts [list debug additional_flags=3D-DNO_LONG_LONG] diff --git a/gdb/testsuite/gdb.ctf/multi.exp b/gdb/testsuite/gdb.ctf/multi.= exp index 0afbdc5a6ab..c82d1b952e3 100644 --- a/gdb/testsuite/gdb.ctf/multi.exp +++ b/gdb/testsuite/gdb.ctf/multi.exp @@ -15,7 +15,7 @@ =20 # This file is a subset of ptype.exp written by Rob Savoye. (rob@cygnus.co= m) =20 -require !skip_ctf_tests +require allow_ctf_tests =20 standard_testfile ctf-a.c ctf-b.c ctf-c.c =20 diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index b1d0e7aefdf..e2feebfab8f 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -8522,11 +8522,11 @@ proc cmp_binary_files { file1 file2 } { # flag? If not then we should skip these tests. We should also # skip them if libctf was explicitly disabled. =20 -gdb_caching_proc skip_ctf_tests { +gdb_caching_proc allow_ctf_tests { global enable_libctf =20 if {$enable_libctf eq "no"} { - return 1 + return 0 } =20 set can_ctf [gdb_can_simple_compile ctfdebug { @@ -8535,7 +8535,7 @@ gdb_caching_proc skip_ctf_tests { } } executable "additional_flags=3D-gctf"] =20 - return [expr {!$can_ctf}] + return $can_ctf } =20 # Return 1 if compiler supports -gstatement-frontiers. Otherwise,