Skip to content
Snippets Groups Projects
Commit 5f4afe3b authored by Arseny Kapoulkine's avatar Arseny Kapoulkine
Browse files

tests: Fix PUGIXML_NO_XPATH build

parent 62728d9c
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment