From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id F3B4D38543B3; Fri, 13 Jan 2023 20:37:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3B4D38543B3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673642229; bh=D1D7oTga0fyINnwvtcL3hCbFTT9dFAHsEMI9RPu8EFQ=; h=From:To:Subject:Date:From; b=iDIKPoldr9I8DMkMC1bw9AyH0H4Y9foRFjKaTfxYUTiwTlXovPUnWiEPIaByfqu4b 0UoT4RmTrEb2XCyxbPz48o928cSQuh1uqMc2GHNOXaurga+BZUNeRrvuiFbWEzKTKO RiYd3rLpy0e7bfaq95VKSE1TctyOkMAzEeEU+jK8= 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 gdb_skip_xml_test X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: e5bf39c507a7806f0926a35a81b78b5cc5273c6a X-Git-Newrev: f40c0f9cab7c24ca49615ca5a6efb51b85fcc82c Message-Id: <20230113203708.F3B4D38543B3@sourceware.org> Date: Fri, 13 Jan 2023 20:37:08 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Df40c0f9cab7c= 24ca49615ca5a6efb51b85fcc82c commit f40c0f9cab7c24ca49615ca5a6efb51b85fcc82c Author: Tom Tromey Date: Thu Dec 15 16:09:03 2022 -0700 Use require gdb_skip_xml_test =20 This changes some tests to use "require gdb_skip_xml_test". Diff: --- gdb/testsuite/gdb.arch/arc-tdesc-cpu.exp | 5 +---- gdb/testsuite/gdb.base/info-os.exp | 5 +---- gdb/testsuite/gdb.mi/list-thread-groups-available.exp | 5 +---- gdb/testsuite/gdb.mi/mi-info-os.exp | 5 +---- gdb/testsuite/gdb.xml/maint-xml-dump.exp | 5 +---- gdb/testsuite/gdb.xml/maint_print_struct.exp | 5 +---- gdb/testsuite/gdb.xml/tdesc-arch.exp | 5 +---- gdb/testsuite/gdb.xml/tdesc-errors.exp | 5 +---- gdb/testsuite/gdb.xml/tdesc-regs.exp | 5 +---- gdb/testsuite/gdb.xml/tdesc-reload.exp | 5 +---- gdb/testsuite/gdb.xml/tdesc-xinclude.exp | 5 +---- 11 files changed, 11 insertions(+), 44 deletions(-) diff --git a/gdb/testsuite/gdb.arch/arc-tdesc-cpu.exp b/gdb/testsuite/gdb.a= rch/arc-tdesc-cpu.exp index 42c94d97c46..6819c302187 100644 --- a/gdb/testsuite/gdb.arch/arc-tdesc-cpu.exp +++ b/gdb/testsuite/gdb.arch/arc-tdesc-cpu.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 {[gdb_skip_xml_test]} { - unsupported "arc-tdesc-cpu.exp" - return -1 -} +require !gdb_skip_xml_test =20 gdb_start =20 diff --git a/gdb/testsuite/gdb.base/info-os.exp b/gdb/testsuite/gdb.base/in= fo-os.exp index 81db8a15608..58f7126678e 100644 --- a/gdb/testsuite/gdb.base/info-os.exp +++ b/gdb/testsuite/gdb.base/info-os.exp @@ -22,10 +22,7 @@ if {![istarget *-*-linux*]} { } =20 # Support for XML-output is needed to run this test. -if {[gdb_skip_xml_test]} { - unsupported "info-os.exp" - return -1 -} +require !gdb_skip_xml_test =20 # Compile test program. if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug pt= hreads}] } { diff --git a/gdb/testsuite/gdb.mi/list-thread-groups-available.exp b/gdb/te= stsuite/gdb.mi/list-thread-groups-available.exp index 646d74ed0a6..1a77b96f2f8 100644 --- a/gdb/testsuite/gdb.mi/list-thread-groups-available.exp +++ b/gdb/testsuite/gdb.mi/list-thread-groups-available.exp @@ -21,10 +21,7 @@ set MIFLAGS "-i=3Dmi" standard_testfile =20 # Support for XML is needed to run this test. -if {[gdb_skip_xml_test]} { - unsupported "list-thread-groups-available.exp" - return -1 -} +require !gdb_skip_xml_test =20 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executabl= e {debug}] !=3D "" } { untested "failed to compile" diff --git a/gdb/testsuite/gdb.mi/mi-info-os.exp b/gdb/testsuite/gdb.mi/mi-= info-os.exp index dc70c4cd1f6..7e7db550af7 100644 --- a/gdb/testsuite/gdb.mi/mi-info-os.exp +++ b/gdb/testsuite/gdb.mi/mi-info-os.exp @@ -23,10 +23,7 @@ if {![istarget *-*-linux*]} { } =20 # Support for XML-output is needed to run this test. -if {[gdb_skip_xml_test]} { - unsupported "mi-info-os.exp" - return -1 -} +require !gdb_skip_xml_test =20 gdb_exit if [mi_gdb_start] { diff --git a/gdb/testsuite/gdb.xml/maint-xml-dump.exp b/gdb/testsuite/gdb.x= ml/maint-xml-dump.exp index 69b21646832..0bf785537b1 100644 --- a/gdb/testsuite/gdb.xml/maint-xml-dump.exp +++ b/gdb/testsuite/gdb.xml/maint-xml-dump.exp @@ -37,10 +37,7 @@ # # 4. Indentation of lines will be preserved so your input file needs # to follow the expected indentation. -if {[gdb_skip_xml_test]} { - unsupported "xml tests not being run" - return -1 -} +require !gdb_skip_xml_test =20 gdb_start =20 diff --git a/gdb/testsuite/gdb.xml/maint_print_struct.exp b/gdb/testsuite/g= db.xml/maint_print_struct.exp index 3260fbc2c1a..f4d32d6623e 100644 --- a/gdb/testsuite/gdb.xml/maint_print_struct.exp +++ b/gdb/testsuite/gdb.xml/maint_print_struct.exp @@ -17,10 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -if {[gdb_skip_xml_test]} { - unsupported "maint_print_struct.exp" - return -1 -} +require !gdb_skip_xml_test =20 gdb_start =20 diff --git a/gdb/testsuite/gdb.xml/tdesc-arch.exp b/gdb/testsuite/gdb.xml/t= desc-arch.exp index 023f9c44ec5..9825320b024 100644 --- a/gdb/testsuite/gdb.xml/tdesc-arch.exp +++ b/gdb/testsuite/gdb.xml/tdesc-arch.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 {[gdb_skip_xml_test]} { - unsupported "tdesc-arch.exp" - return -1 -} +require !gdb_skip_xml_test =20 gdb_start =20 diff --git a/gdb/testsuite/gdb.xml/tdesc-errors.exp b/gdb/testsuite/gdb.xml= /tdesc-errors.exp index 5454d26b851..b3243064e9c 100644 --- a/gdb/testsuite/gdb.xml/tdesc-errors.exp +++ b/gdb/testsuite/gdb.xml/tdesc-errors.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 {[gdb_skip_xml_test]} { - unsupported "tdesc-errors.exp" - return -1 -} +require !gdb_skip_xml_test =20 gdb_start =20 diff --git a/gdb/testsuite/gdb.xml/tdesc-regs.exp b/gdb/testsuite/gdb.xml/t= desc-regs.exp index 902671ebeba..13fafa1477e 100644 --- a/gdb/testsuite/gdb.xml/tdesc-regs.exp +++ b/gdb/testsuite/gdb.xml/tdesc-regs.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 {[gdb_skip_xml_test]} { - unsupported "tdesc-regs.exp" - return -1 -} +require !gdb_skip_xml_test =20 gdb_start =20 diff --git a/gdb/testsuite/gdb.xml/tdesc-reload.exp b/gdb/testsuite/gdb.xml= /tdesc-reload.exp index b8cf39030d2..997b1f4e0ad 100644 --- a/gdb/testsuite/gdb.xml/tdesc-reload.exp +++ b/gdb/testsuite/gdb.xml/tdesc-reload.exp @@ -16,10 +16,7 @@ # Testing for 'maint print xml-tdesc'. Check we can print out the # current target description and load it back in again. =20 -if {[gdb_skip_xml_test]} { - unsupported "xml tests not being run" - return -1 -} +require !gdb_skip_xml_test =20 standard_testfile =20 diff --git a/gdb/testsuite/gdb.xml/tdesc-xinclude.exp b/gdb/testsuite/gdb.x= ml/tdesc-xinclude.exp index 361039f1389..3a757126799 100644 --- a/gdb/testsuite/gdb.xml/tdesc-xinclude.exp +++ b/gdb/testsuite/gdb.xml/tdesc-xinclude.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 {[gdb_skip_xml_test]} { - unsupported "tdesc-errors.exp" - return -1 -} +require !gdb_skip_xml_test =20 gdb_start