summaryrefslogtreecommitdiff
path: root/tests/test_dom_modify.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-06 09:59:07 +0100
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-11-06 09:59:07 +0100
commit50bfdb1856659a89d4db674abe2b69a2c7589a83 (patch)
treebdcd843f853dca3d615a044696d1dfd0fad77813 /tests/test_dom_modify.cpp
parent393cc28481fbf281c9e6ba278eaf10bc3c6b29d6 (diff)
tests: Fix all tests for compact mode
Memory allocation behavior is different in compact mode so tests that rely on current behavior have to be adjusted.
Diffstat (limited to 'tests/test_dom_modify.cpp')
-rw-r--r--tests/test_dom_modify.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_dom_modify.cpp b/tests/test_dom_modify.cpp
index 45cf3ea..6417033 100644
--- a/tests/test_dom_modify.cpp
+++ b/tests/test_dom_modify.cpp
@@ -1310,6 +1310,11 @@ TEST(dom_node_copy_copyless)
// the document is parsed in-place so there should only be 1 page worth of allocations
test_runner::_memory_fail_threshold = 32768 + 128;
+#ifdef PUGIXML_COMPACT
+ // ... and some space for hash table
+ test_runner::_memory_fail_threshold += 2048;
+#endif
+
xml_document doc;
CHECK(doc.load_buffer_inplace(&datacopy[0], datacopy.size() * sizeof(char_t), parse_full));