diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2019-02-26 22:15:34 -0800 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2019-02-26 22:15:34 -0800 |
commit | 930a701f1f9986baeb0959670265f6c9dd7b97cf (patch) | |
tree | 9a9d41398e371a65d3be8d509f2340304621cde7 | |
parent | 93c7bacb29405b83c15fde8c315f36a84d607601 (diff) | |
download | pugixml-930a701f1f9986baeb0959670265f6c9dd7b97cf.zip pugixml-930a701f1f9986baeb0959670265f6c9dd7b97cf.tar.gz pugixml-930a701f1f9986baeb0959670265f6c9dd7b97cf.tar.bz2 |
tests: Disable flaky test
This test is very sensitive to the particular implementation of union
aggregation; for now lets disable this.
We need a more robust way to test union allocation failures.
-rw-r--r-- | tests/test_xpath.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_xpath.cpp b/tests/test_xpath.cpp index bc91c68..5cafb47 100644 --- a/tests/test_xpath.cpp +++ b/tests/test_xpath.cpp @@ -449,6 +449,7 @@ TEST(xpath_out_of_memory_evaluate_substring) CHECK_ALLOC_FAIL(CHECK(q.evaluate_string(0, 0, xml_node()) == 1)); } +/* TEST_XML(xpath_out_of_memory_evaluate_union, "<node><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/></node>") { test_runner::_memory_fail_threshold = 32768 + 4096 * 2; @@ -457,6 +458,7 @@ TEST_XML(xpath_out_of_memory_evaluate_union, "<node><a/><a/><a/><a/><a/><a/><a/> CHECK_ALLOC_FAIL(CHECK(q.evaluate_node_set(doc.child(STR("node"))).empty())); } +*/ TEST_XML(xpath_out_of_memory_evaluate_predicate, "<node><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/><a/></node>") { |