From cee7eca229aff08d619160f0f1b471e5589a3d99 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Sat, 17 Nov 2012 23:51:43 +0000 Subject: XPath: Fix unit test that (incorrectly) relied on right-associativity of union operator to trigger out of memory condition git-svn-id: http://pugixml.googlecode.com/svn/trunk@930 99668b35-9821-0410-8761-19e4c4f06640 --- 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 0416841..526854a 100644 --- a/tests/test_xpath.cpp +++ b/tests/test_xpath.cpp @@ -382,7 +382,7 @@ TEST_XML(xpath_out_of_memory_evaluate_union, " { test_runner::_memory_fail_threshold = 32768 + 4096 * 2; - pugi::xpath_query q(STR("a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a")); + pugi::xpath_query q(STR("a|(a|(a|(a|(a|(a|(a|(a|(a|(a|(a|(a|(a|(a|(a|(a|(a|(a|(a|(a|a)))))))))))))))))))")); #ifdef PUGIXML_NO_EXCEPTIONS CHECK(q.evaluate_node_set(doc.child(STR("node"))).empty()); -- cgit v1.2.3