From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 644BB3858C39; Fri, 13 Jan 2023 20:35:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 644BB3858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673642117; bh=5jz1hPbHldxaEhJYQblzFEQpzQyVmvw5Oq9sevPgTM0=; h=From:To:Subject:Date:From; b=mhUveliil+tZEk/sXJ4PhX7ZjT3d/dxEKZIX9kbmvIf2ZSq+lkn4CcpuYy65x4HsH RMZVcn4hJOrV39m1Z7/ROgRpkpz5dg57/mUgO5NNab6AVRsq0PUS996Vr6NChyd2WG idFpsgpEIx5lNa9TiB9KSVD4SZ74F1SEx6odVqXA= 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] Use require !skip_ctf_tests X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 1952d8b04233bf0273878f57b92b7a991f7ff53c X-Git-Newrev: c76fbc7fc3361ad2be29116df86b8494c4922507 Message-Id: <20230113203517.644BB3858C39@sourceware.org> Date: Fri, 13 Jan 2023 20:35:17 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dc76fbc7fc336= 1ad2be29116df86b8494c4922507 commit c76fbc7fc3361ad2be29116df86b8494c4922507 Author: Tom Tromey Date: Wed Dec 14 09:33:00 2022 -0700 Use require !skip_ctf_tests =20 This changes some tests to use "require !skip_ctf_tests". Diff: --- gdb/testsuite/gdb.base/ctf-constvars.exp | 5 +---- gdb/testsuite/gdb.base/ctf-ptype.exp | 5 +---- gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp | 5 +---- gdb/testsuite/gdb.ctf/funcreturn.exp | 5 +---- gdb/testsuite/gdb.ctf/multi.exp | 5 +---- 5 files changed, 5 insertions(+), 20 deletions(-) diff --git a/gdb/testsuite/gdb.base/ctf-constvars.exp b/gdb/testsuite/gdb.b= ase/ctf-constvars.exp index 3ef52b01dc7..7737401bbab 100644 --- a/gdb/testsuite/gdb.base/ctf-constvars.exp +++ b/gdb/testsuite/gdb.base/ctf-constvars.exp @@ -24,10 +24,7 @@ # const pointers to const vars # with mixed types. =20 -if [skip_ctf_tests] { - unsupported "no CTF debug format support, or CTF disabled in GDB" - return 0 -} +require !skip_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 51499e323da..4010cf4e15e 100644 --- a/gdb/testsuite/gdb.base/ctf-ptype.exp +++ b/gdb/testsuite/gdb.base/ctf-ptype.exp @@ -15,10 +15,7 @@ =20 # This file is a subset of ptype.exp written by Rob Savoye. (rob@cygnus.co= m) =20 -if [skip_ctf_tests] { - unsupported "no CTF debug format support, or CTF disabled in GDB" - return 0 -} +require !skip_ctf_tests =20 # Some tests require GCC. set gcc_compiled [is_c_compiler_gcc] diff --git a/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp b/gdb/testsuite/gdb.= ctf/cross-tu-cyclic.exp index 1fc0e71146b..4ce178af2c0 100644 --- a/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp +++ b/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp @@ -15,10 +15,7 @@ =20 # This file is a subset of ptype.exp written by Rob Savoye. (rob@cygnus.co= m) =20 -if [skip_ctf_tests] { - unsupported "no CTF debug format support, or CTF disabled in GDB" - return 0 -} +require !skip_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 4cde8dcabda..a65a1cbf7ad 100644 --- a/gdb/testsuite/gdb.ctf/funcreturn.exp +++ b/gdb/testsuite/gdb.ctf/funcreturn.exp @@ -13,10 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -if [skip_ctf_tests] { - unsupported "no CTF debug format support, or CTF disabled in GDB" - return 0 -} +require !skip_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 ea317d14c34..0afbdc5a6ab 100644 --- a/gdb/testsuite/gdb.ctf/multi.exp +++ b/gdb/testsuite/gdb.ctf/multi.exp @@ -15,10 +15,7 @@ =20 # This file is a subset of ptype.exp written by Rob Savoye. (rob@cygnus.co= m) =20 -if [skip_ctf_tests] { - unsupported "no CTF debug format support, or CTF disabled in GDB" - return 0 -} +require !skip_ctf_tests =20 standard_testfile ctf-a.c ctf-b.c ctf-c.c