diff options
author | Tom Tromey <tom@tromey.com> | 2022-12-15 16:09:03 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-01-13 13:18:56 -0700 |
commit | f40c0f9cab7c24ca49615ca5a6efb51b85fcc82c (patch) | |
tree | 8699aa85bef3b24a696ef367aba762253ce798f4 /gdb | |
parent | e5bf39c507a7806f0926a35a81b78b5cc5273c6a (diff) | |
download | fsf-binutils-gdb-f40c0f9cab7c24ca49615ca5a6efb51b85fcc82c.zip fsf-binutils-gdb-f40c0f9cab7c24ca49615ca5a6efb51b85fcc82c.tar.gz fsf-binutils-gdb-f40c0f9cab7c24ca49615ca5a6efb51b85fcc82c.tar.bz2 |
Use require gdb_skip_xml_test
This changes some tests to use "require gdb_skip_xml_test".
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/gdb.arch/arc-tdesc-cpu.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/info-os.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/list-thread-groups-available.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-info-os.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.xml/maint-xml-dump.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.xml/maint_print_struct.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.xml/tdesc-arch.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.xml/tdesc-errors.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.xml/tdesc-regs.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.xml/tdesc-reload.exp | 5 | ||||
-rw-r--r-- | 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.arch/arc-tdesc-cpu.exp index 42c94d9..6819c30 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 <http://www.gnu.org/licenses/>. -if {[gdb_skip_xml_test]} { - unsupported "arc-tdesc-cpu.exp" - return -1 -} +require !gdb_skip_xml_test gdb_start diff --git a/gdb/testsuite/gdb.base/info-os.exp b/gdb/testsuite/gdb.base/info-os.exp index 81db8a1..58f7126 100644 --- a/gdb/testsuite/gdb.base/info-os.exp +++ b/gdb/testsuite/gdb.base/info-os.exp @@ -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}] } { diff --git a/gdb/testsuite/gdb.mi/list-thread-groups-available.exp b/gdb/testsuite/gdb.mi/list-thread-groups-available.exp index 646d74e..1a77b96 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=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" diff --git a/gdb/testsuite/gdb.mi/mi-info-os.exp b/gdb/testsuite/gdb.mi/mi-info-os.exp index dc70c4c..7e7db55 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*]} { } # 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] { diff --git a/gdb/testsuite/gdb.xml/maint-xml-dump.exp b/gdb/testsuite/gdb.xml/maint-xml-dump.exp index 69b2164..0bf7855 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 gdb_start diff --git a/gdb/testsuite/gdb.xml/maint_print_struct.exp b/gdb/testsuite/gdb.xml/maint_print_struct.exp index 3260fbc..f4d32d6 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 <http://www.gnu.org/licenses/>. -if {[gdb_skip_xml_test]} { - unsupported "maint_print_struct.exp" - return -1 -} +require !gdb_skip_xml_test gdb_start diff --git a/gdb/testsuite/gdb.xml/tdesc-arch.exp b/gdb/testsuite/gdb.xml/tdesc-arch.exp index 023f9c4..9825320 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 <http://www.gnu.org/licenses/>. -if {[gdb_skip_xml_test]} { - unsupported "tdesc-arch.exp" - return -1 -} +require !gdb_skip_xml_test gdb_start diff --git a/gdb/testsuite/gdb.xml/tdesc-errors.exp b/gdb/testsuite/gdb.xml/tdesc-errors.exp index 5454d26..b324306 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 <http://www.gnu.org/licenses/>. -if {[gdb_skip_xml_test]} { - unsupported "tdesc-errors.exp" - return -1 -} +require !gdb_skip_xml_test gdb_start diff --git a/gdb/testsuite/gdb.xml/tdesc-regs.exp b/gdb/testsuite/gdb.xml/tdesc-regs.exp index 902671e..13fafa1 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 <http://www.gnu.org/licenses/>. -if {[gdb_skip_xml_test]} { - unsupported "tdesc-regs.exp" - return -1 -} +require !gdb_skip_xml_test gdb_start diff --git a/gdb/testsuite/gdb.xml/tdesc-reload.exp b/gdb/testsuite/gdb.xml/tdesc-reload.exp index b8cf390..997b1f4 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. -if {[gdb_skip_xml_test]} { - unsupported "xml tests not being run" - return -1 -} +require !gdb_skip_xml_test standard_testfile diff --git a/gdb/testsuite/gdb.xml/tdesc-xinclude.exp b/gdb/testsuite/gdb.xml/tdesc-xinclude.exp index 361039f..3a75712 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 <http://www.gnu.org/licenses/>. -if {[gdb_skip_xml_test]} { - unsupported "tdesc-errors.exp" - return -1 -} +require !gdb_skip_xml_test gdb_start |