aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2017-11-03 12:53:53 +0000
committerYao Qi <yao.qi@linaro.org>2017-11-03 12:53:53 +0000
commit50ab6ace3803ca317f265dae6064494e3b7fa8cb (patch)
tree851d5700218e0f403481718b42aab7a906599d60 /gdb/testsuite/gdb.mi
parent6cee897971d4d7cd37d2a686bb6d2aa3e759c8ca (diff)
downloadgdb-50ab6ace3803ca317f265dae6064494e3b7fa8cb.zip
gdb-50ab6ace3803ca317f265dae6064494e3b7fa8cb.tar.gz
gdb-50ab6ace3803ca317f265dae6064494e3b7fa8cb.tar.bz2
Skip gdb.mi/list-thread-groups-available.exp if no xml support
I see the following test fail in gdb (configured --with-expat=no), -list-thread-groups --available^M &"warning: Can not parse XML OS data; XML support was disabled at compile time\n"^M ^error,msg="Can not fetch data now."^M (gdb) ^M FAIL: gdb.mi/list-thread-groups-available.exp: list available thread groups (unexpected output) This patch skips it if XML parsing in GDB is disabled, like what you did in gdb.mi/mi-info-os.exp. gdb/testsuite: 2017-11-03 Yao Qi <yao.qi@linaro.org> * gdb.mi/list-thread-groups-available.exp: Skip it if XML parsing in GDB is disabled.
Diffstat (limited to 'gdb/testsuite/gdb.mi')
-rw-r--r--gdb/testsuite/gdb.mi/list-thread-groups-available.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.mi/list-thread-groups-available.exp b/gdb/testsuite/gdb.mi/list-thread-groups-available.exp
index eea27b4..749ef72 100644
--- a/gdb/testsuite/gdb.mi/list-thread-groups-available.exp
+++ b/gdb/testsuite/gdb.mi/list-thread-groups-available.exp
@@ -20,6 +20,12 @@ set MIFLAGS "-i=mi"
standard_testfile
+# Support for XML is needed to run this test.
+if [gdb_skip_xml_test] then {
+ unsupported "list-thread-groups-available.exp"
+ return -1
+}
+
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
untested "failed to compile"
return -1