summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xpath_api.cpp2
-rw-r--r--tests/test_xpath_variables.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_xpath_api.cpp b/tests/test_xpath_api.cpp
index ef7d4b2..9aa1a34 100644
--- a/tests/test_xpath_api.cpp
+++ b/tests/test_xpath_api.cpp
@@ -418,7 +418,7 @@ TEST(xpath_api_empty)
CHECK(!q.evaluate_boolean(c));
}
-#if __cplusplus >= 201103
+#ifdef PUGIXML_HAS_MOVE
TEST_XML(xpath_api_nodeset_move_ctor, "<node><foo/><foo/><bar/></node>")
{
xpath_node_set set = doc.select_nodes(STR("node/bar/preceding::*"));
diff --git a/tests/test_xpath_variables.cpp b/tests/test_xpath_variables.cpp
index d9603ce..2033a8e 100644
--- a/tests/test_xpath_variables.cpp
+++ b/tests/test_xpath_variables.cpp
@@ -474,7 +474,7 @@ TEST_XML(xpath_variables_copy_out_of_memory, "<node1 /><node2 />")
CHECK(set2.get(STR("d"))->get_node_set().size() == 2);
}
-#if __cplusplus >= 201103
+#ifdef PUGIXML_HAS_MOVE
TEST_XML(xpath_variables_move, "<node />")
{
xpath_variable_set set;