From fe7b837868b22a3684603327bfaa3242eb8adf22 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Fri, 16 Mar 2018 21:33:26 -0700 Subject: tests: Fix PUGIXML_COMPACT+PUGIXML_WCHAR_MODE tests Several tests got the buffer size wrong when sizeof(char_t)>1, and one test didn't meet the carefully tuned allocation criteria under compact mode due to the hash table usage and had to be changed a bit. --- tests/test_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_memory.cpp') diff --git a/tests/test_memory.cpp b/tests/test_memory.cpp index 4acda5b..3258736 100644 --- a/tests/test_memory.cpp +++ b/tests/test_memory.cpp @@ -161,7 +161,7 @@ TEST(memory_page_management) for (size_t i = 0; i < 4000; ++i) { - xml_node node = doc.append_child(STR("node")); + xml_node node = doc.append_child(STR("n")); CHECK(node); nodes.push_back(node); -- cgit v1.2.3