diff options
Diffstat (limited to 'tests/test_deprecated.cpp')
-rw-r--r-- | tests/test_deprecated.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_deprecated.cpp b/tests/test_deprecated.cpp index 990e9ba..8119110 100644 --- a/tests/test_deprecated.cpp +++ b/tests/test_deprecated.cpp @@ -11,6 +11,7 @@ TEST(document_deprecated_load) CHECK_NODE(doc, STR("<node/>")); } +#ifndef PUGIXML_NO_XPATH TEST_XML(xpath_api_deprecated_select_single_node, "<node><head/><foo id='1'/><foo/><tail/></node>") { xpath_node n1 = doc.select_single_node(STR("node/foo")); @@ -21,3 +22,4 @@ TEST_XML(xpath_api_deprecated_select_single_node, "<node><head/><foo id='1'/><fo CHECK(n1.node().attribute(STR("id")).as_int() == 1); CHECK(n2.node().attribute(STR("id")).as_int() == 1); } +#endif |