diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-08-04 20:10:10 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-08-04 20:10:10 +0000 |
commit | a9bc2d88736cc4d2f2963915e3de66b93585f479 (patch) | |
tree | 33f32417ccbd1af6a714bda55862322d92f1fb2c /tests/test_dom_modify.cpp | |
parent | deb9e8bc74e67ec14a39dd977afbfe345d5586f6 (diff) |
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
Diffstat (limited to 'tests/test_dom_modify.cpp')
-rw-r--r-- | tests/test_dom_modify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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())); |