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(""));
}
+#ifndef PUGIXML_NO_XPATH
TEST_XML(xpath_api_deprecated_select_single_node, "")
{
xpath_node n1 = doc.select_single_node(STR("node/foo"));
@@ -21,3 +22,4 @@ TEST_XML(xpath_api_deprecated_select_single_node, "