From 8e29d16a56228d200b6d39b37506e27a037f0f6f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 13 Nov 2006 16:16:54 +0000 Subject: Initialise memory leak finder in all unit tests (refs #3) --- infrastructure/buildenv-testmain-template.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'infrastructure') diff --git a/infrastructure/buildenv-testmain-template.cpp b/infrastructure/buildenv-testmain-template.cpp index 7adbafa9..856c1bc4 100644 --- a/infrastructure/buildenv-testmain-template.cpp +++ b/infrastructure/buildenv-testmain-template.cpp @@ -114,6 +114,10 @@ int main(int argc, const char *argv[]) } try { + #ifdef BOX_MEMORY_LEAK_TESTING + memleakfinder_init(); + #endif + int returncode = test(argc, argv); // check for memory leaks, if enabled -- cgit v1.2.3