aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2012-07-23 20:00:17 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2012-07-23 20:00:17 +0000
commitba6b64fef26412fd664e22862d10d636194f8c75 (patch)
tree462b6764b79b0483a345a95698d2794d7d6212a4 /UnitTesting
parent940405e8052b3f5e940b15b2690408554edf4f18 (diff)
[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)
Diffstat (limited to 'UnitTesting')
-rw-r--r--UnitTesting/GTMSenTestCase.m4
1 files changed, 2 insertions, 2 deletions
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