* [PATCH OBV] Skip 'maintenance check xml-descriptions' if XML is disabled
@ 2017-12-15 10:45 Yao Qi
0 siblings, 0 replies; only message in thread
From: Yao Qi @ 2017-12-15 10:45 UTC (permalink / raw)
To: gdb-patches
I see the following test failure when gdb is configured without XML
support,
maintenance check xml-descriptions binutils-gdb/gdb/testsuite/../features
warning: Can not parse XML target description; XML support was disabled at compile time^M
Tested 29 XML files, 29 failed
(gdb) FAIL: gdb.gdb/unittest.exp: maintenance check xml-descriptions ${srcdir}/../features
gdb/testsuite:
2017-12-15 Yao Qi <yao.qi@linaro.org>
* gdb.gdb/unittest.exp: Skip 'maintenance check xml-descriptions'
if XML is disabled.
---
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.gdb/unittest.exp | 4 +++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 84ad6d6..8d52bb9 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2017-12-15 Yao Qi <yao.qi@linaro.org>
+
+ * gdb.gdb/unittest.exp: Skip 'maintenance check xml-descriptions'
+ if XML is disabled.
+
2017-12-15 Xavier Roirand <roirand@adacore.com>
* gdb.ada/same_component_name: New testcase.
diff --git a/gdb/testsuite/gdb.gdb/unittest.exp b/gdb/testsuite/gdb.gdb/unittest.exp
index 58494e1..7d280d1 100644
--- a/gdb/testsuite/gdb.gdb/unittest.exp
+++ b/gdb/testsuite/gdb.gdb/unittest.exp
@@ -13,10 +13,12 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+set do_xml_test [expr ![gdb_skip_xml_test]]
+
gdb_start
gdb_test "maintenance selftest" "Ran $decimal unit tests, 0 failed"
-if { ![is_remote host] } {
+if { ![is_remote host] && $do_xml_test } {
gdb_test "maintenance check xml-descriptions ${srcdir}/../features" \
"Tested $decimal XML files, 0 failed" \
"maintenance check xml-descriptions \${srcdir}/../features"
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-12-15 10:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-15 10:45 [PATCH OBV] Skip 'maintenance check xml-descriptions' if XML is disabled Yao Qi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).