diff options
author | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-11-17 23:51:43 +0000 |
---|---|---|
committer | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-11-17 23:51:43 +0000 |
commit | cee7eca229aff08d619160f0f1b471e5589a3d99 (patch) | |
tree | 553672b537844336a56b0eb9259b1adc95bf1ccb /tests | |
parent | 48f9343c05eabf9f2b0b5529005ce43b2b5bceeb (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_xpath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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, "<node><a/><a/><a/><a/><a/><a/><a/> { 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()); |