summaryrefslogtreecommitdiff
path: root/tests/test_dom_modify.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-03 08:03:23 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-03 08:03:23 +0000
commit085584aa30b79e7755ffdf50882f7decfd4336be (patch)
treebef6269609b46a25a7e823bbba3716b2423e0e83 /tests/test_dom_modify.cpp
parent4f6ecee14cbbf72009ef1c7c27007773c9efa385 (diff)
tests: Preparations for custom new/delete (leak detection)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@620 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_dom_modify.cpp')
-rw-r--r--tests/test_dom_modify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_dom_modify.cpp b/tests/test_dom_modify.cpp
index 5a5d3ff..c14d8eb 100644
--- a/tests/test_dom_modify.cpp
+++ b/tests/test_dom_modify.cpp
@@ -584,9 +584,9 @@ TEST(dom_node_declaration_copy)
TEST(dom_string_out_of_memory)
{
- unsigned int length = 65536;
+ const unsigned int length = 65536;
+ static char_t string[length + 1];
- char_t* string = new char_t[length + 1];
for (unsigned int i = 0; i < length; ++i) string[i] = 'a';
string[length] = 0;