Use require gdb_skip_xml_test
authorTom Tromey <tom@tromey.com>
Thu, 15 Dec 2022 23:09:03 +0000 (16:09 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 13 Jan 2023 20:18:56 +0000 (13:18 -0700)
This changes some tests to use "require gdb_skip_xml_test".

gdb/testsuite/gdb.arch/arc-tdesc-cpu.exp
gdb/testsuite/gdb.base/info-os.exp
gdb/testsuite/gdb.mi/list-thread-groups-available.exp
gdb/testsuite/gdb.mi/mi-info-os.exp
gdb/testsuite/gdb.xml/maint-xml-dump.exp
gdb/testsuite/gdb.xml/maint_print_struct.exp
gdb/testsuite/gdb.xml/tdesc-arch.exp
gdb/testsuite/gdb.xml/tdesc-errors.exp
gdb/testsuite/gdb.xml/tdesc-regs.exp
gdb/testsuite/gdb.xml/tdesc-reload.exp
gdb/testsuite/gdb.xml/tdesc-xinclude.exp

index 42c94d97c4649b264b30be6a8968d39e515b719f..6819c302187c1d08a309f7959034dcbfe4a9cc13 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if {[gdb_skip_xml_test]} {
-    unsupported "arc-tdesc-cpu.exp"
-    return -1
-}
+require !gdb_skip_xml_test
 
 gdb_start
 
index 81db8a1560872a86dec3fc68178ff87d79ac7e36..58f7126678ea205ab0dcd24eef8b7b1c33252e21 100644 (file)
@@ -22,10 +22,7 @@ if {![istarget *-*-linux*]} {
 }
 
 # 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
 
 # Compile test program.
 if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] } {
index 646d74ed0a6c35e23fd87f9e3f923911bdc0e196..1a77b96f2f81956cb43dc174d5ae54656fc7a50e 100644 (file)
@@ -21,10 +21,7 @@ set MIFLAGS "-i=mi"
 standard_testfile
 
 # 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
 
 if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
     untested "failed to compile"
index dc70c4cd1f6370690a89c74edc6019d2a50dc117..7e7db550af72747899e4ec0023849b9042c5510a 100644 (file)
@@ -23,10 +23,7 @@ if {![istarget *-*-linux*]} {
 }
 
 # 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
 
 gdb_exit
 if [mi_gdb_start] {
index 69b21646832db83c4f9f170654df629eb2e0c765..0bf785537b15c307596244292e3849b82594dab6 100644 (file)
 #
 # 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
 
 gdb_start
 
index 3260fbc2c1ab5a30da9205c28bf356327bb37894..f4d32d6623e33efb423a32198e8177da706e0d05 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if {[gdb_skip_xml_test]} {
-    unsupported "maint_print_struct.exp"
-    return -1
-}
+require !gdb_skip_xml_test
 
 gdb_start
 
index 023f9c44ec55a3823e945bff0832d2ba4b0dcc90..9825320b0246accf09cc59304b74ece056cfc178 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if {[gdb_skip_xml_test]} {
-    unsupported "tdesc-arch.exp"
-    return -1
-}
+require !gdb_skip_xml_test
 
 gdb_start
 
index 5454d26b851ac636b53e20c75d5d4ebdbff14b94..b3243064e9ce0698f875aa7956ff68c8fef9e748 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if {[gdb_skip_xml_test]} {
-    unsupported "tdesc-errors.exp"
-    return -1
-}
+require !gdb_skip_xml_test
 
 gdb_start
 
index 902671ebebadb5d44938983ef1fe8a6ae4de7e48..13fafa1477ebe873b98c9eb386ffe6a914901960 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if {[gdb_skip_xml_test]} {
-    unsupported "tdesc-regs.exp"
-    return -1
-}
+require !gdb_skip_xml_test
 
 gdb_start
 
index b8cf39030d243fba25dc7c2e07fb7bf1831bf809..997b1f4e0ad3f472a4cb7b407df6940d7eb52dcd 100644 (file)
 # Testing for 'maint print xml-tdesc'.  Check we can print out the
 # current target description and load it back in again.
 
-if {[gdb_skip_xml_test]} {
-    unsupported "xml tests not being run"
-    return -1
-}
+require !gdb_skip_xml_test
 
 standard_testfile
 
index 361039f1389c27bb700691391cf4b42281c03498..3a757126799b4611e78206e4924137ebf5764341 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if {[gdb_skip_xml_test]} {
-    unsupported "tdesc-errors.exp"
-    return -1
-}
+require !gdb_skip_xml_test
 
 gdb_start