summaryrefslogtreecommitdiff
path: root/tests/test_header_only.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_header_only.cpp')
-rw-r--r--tests/test_header_only.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_header_only.cpp b/tests/test_header_only.cpp
index f1990dd..17cafca 100644
--- a/tests/test_header_only.cpp
+++ b/tests/test_header_only.cpp
@@ -12,5 +12,8 @@ TEST(header_only)
xml_document doc;
CHECK(doc.load_string(STR("<node/>")));
CHECK_STRING(doc.first_child().name(), STR("node"));
+
+#ifndef PUGIXML_NO_XPATH
CHECK(doc.first_child() == doc.select_node(STR("//*")).node());
+#endif
}