diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2018-04-03 21:51:41 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2018-04-03 21:51:41 -0700 |
commit | 5f4afe3bd226802549a1e4c26016c1855c407e49 (patch) | |
tree | 06b551545b5a47e0131d0874747b5e1516b4ad51 | |
parent | 62728d9c2e89e4fa81277a7c62a219fb4db77358 (diff) |
tests: Fix PUGIXML_NO_XPATH build
-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 |