summaryrefslogtreecommitdiff
path: root/tests/test_header_only.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-03-21 00:14:53 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-03-21 00:14:53 -0700
commitce974094ace6a33d46d8dcc6ca66a6fcdc014bbd (patch)
treea6c2f594cbc04bd2042dd55c66afc23f51f9b14c /tests/test_header_only.cpp
parent28e63f66e1e947de276a2181b28906528a483037 (diff)
tests: Fix test compilation
Rename PAGE_SIZE to page_size to avoid define conflict with Android SDK. Minor fixes in several tests.
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
}