From ba6b64fef26412fd664e22862d10d636194f8c75 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Mon, 23 Jul 2012 20:00:17 +0000 Subject: [Author: thomasvl] Add a CPP gate to prevent the install of the atexit hook for running leaks. R=dmaclach DELTA=2 (0 added, 0 deleted, 2 changed) --- UnitTesting/GTMSenTestCase.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'UnitTesting') diff --git a/UnitTesting/GTMSenTestCase.m b/UnitTesting/GTMSenTestCase.m index 2d55936..5607c31 100644 --- a/UnitTesting/GTMSenTestCase.m +++ b/UnitTesting/GTMSenTestCase.m @@ -432,7 +432,7 @@ static int MethodSort(id a, id b, void *context) { @end // Leak detection -#if !GTM_IPHONE_DEVICE +#if !GTM_IPHONE_DEVICE && !GTM_SUPPRESS_RUN_LEAKS_HOOK // Don't want to get leaks on the iPhone Device as the device doesn't // have 'leaks'. The simulator does though. @@ -497,4 +497,4 @@ static __attribute__((constructor)) void _GTMInstallLeaks(void) { } } -#endif // !GTM_IPHONE_DEVICE +#endif // !GTM_IPHONE_DEVICE && !GTM_SUPPRESS_RUN_LEAKS_HOOK -- cgit v1.2.3