From a9bc2d88736cc4d2f2963915e3de66b93585f479 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Wed, 4 Aug 2010 20:10:10 +0000 Subject: tests: Fixed tests for wchar_t mode, added dummy std::cout/wcout usage for MSVC in order to create locales beforehand (avoids memory leaks during tests), minor additional test fixes git-svn-id: http://pugixml.googlecode.com/svn/trunk@629 99668b35-9821-0410-8761-19e4c4f06640 --- tests/test_dom_modify.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_dom_modify.cpp') diff --git a/tests/test_dom_modify.cpp b/tests/test_dom_modify.cpp index e29cbb9..46b0543 100644 --- a/tests/test_dom_modify.cpp +++ b/tests/test_dom_modify.cpp @@ -667,11 +667,11 @@ TEST(dom_node_memory_limit) for (unsigned int i = 0; i < length; ++i) string[i] = 'a'; string[length] = 0; - test_runner::_memory_fail_threshold = 32768 * 4; + test_runner::_memory_fail_threshold = 32768 * 2 + sizeof(string); xml_document doc; - for (int i = 0; i < 32; ++i) + for (int j = 0; j < 32; ++j) { CHECK(doc.append_child().set_name(string)); CHECK(doc.remove_child(doc.first_child())); -- cgit v1.2.3