summaryrefslogtreecommitdiff
path: root/tests/main.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-04-20 20:46:42 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-04-20 20:46:42 +0000
commit516e4d63ce373949588a416278129fa285403d4f (patch)
treebf27f81e62fd75f6e0c55e7a85e96504cb3c71c3 /tests/main.cpp
parentdc0a2a815b9afd89c382bfb1a30877e814dd3458 (diff)
unicode: Fixed tests for Linux
git-svn-id: http://pugixml.googlecode.com/svn/trunk@280 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/main.cpp')
-rw-r--r--tests/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index eb47401..f283dcf 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -12,6 +12,13 @@ jmp_buf test_runner::_failure;
static size_t g_memory_total_size = 0;
+#ifdef __linux
+size_t _msize(void* ptr)
+{
+ return malloc_usable_size(ptr);
+}
+#endif
+
static void* custom_allocate(size_t size)
{
if (test_runner::_memory_fail_threshold > 0 && test_runner::_memory_fail_threshold < size)