From 4bab082a27daa050aa7d704ffdc1b4ee9a3a4c4e Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Wed, 8 Feb 2017 00:31:05 -0800 Subject: tests: Fix clang build --- tests/test_xpath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_xpath.cpp b/tests/test_xpath.cpp index a2af5e6..417440b 100644 --- a/tests/test_xpath.cpp +++ b/tests/test_xpath.cpp @@ -531,7 +531,7 @@ TEST_XML(xpath_memory_translate_table, "a") query += STR("translate(.,'a','A'),"); query += STR("'')"); - CHECK_ALLOC_FAIL(pugi::xpath_query(query.c_str()).evaluate_string(doc.first_child()) == STR("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")); + CHECK_ALLOC_FAIL(CHECK(!pugi::xpath_query(query.c_str()))); } TEST_XML(xpath_sort_copy_share, "test") -- cgit v1.2.3