summaryrefslogtreecommitdiff
path: root/tests/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.cpp')
-rw-r--r--tests/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index 6641e8d..95e1243 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -81,6 +81,8 @@ static bool run_test(test_runner* test)
g_memory_total_count = 0;
test_runner::_memory_fail_threshold = 0;
+ pugi::set_memory_management_functions(custom_allocate, custom_deallocate);
+
#ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable: 4611) // interaction between _setjmp and C++ object destruction is non-portable