aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting/GTMSenTestCase.m
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2012-02-21 21:30:10 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2012-02-21 21:30:10 +0000
commit01361c93b6e4369157678ee02fbee1609cc8c75f (patch)
tree4db168e8e900fae78e454afa5908397e03430c6b /UnitTesting/GTMSenTestCase.m
parentb48bf7920e14a848a7307f96b6980257b94f4369 (diff)
[Author: thomasvl]
But a pool around each invoke test to make sure all objects that go into the pool are cleaned up sooner. R=dmaclach
Diffstat (limited to 'UnitTesting/GTMSenTestCase.m')
-rw-r--r--UnitTesting/GTMSenTestCase.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/UnitTesting/GTMSenTestCase.m b/UnitTesting/GTMSenTestCase.m
index 9a0b941..330a686 100644
--- a/UnitTesting/GTMSenTestCase.m
+++ b/UnitTesting/GTMSenTestCase.m
@@ -401,6 +401,7 @@ static int MethodSort(id a, id b, void *context) {
@implementation GTMTestCase : SenTestCase
- (void)invokeTest {
+ NSAutoreleasePool *localPool = [[NSAutoreleasePool alloc] init];
Class devLogClass = NSClassFromString(@"GTMUnitTestDevLog");
if (devLogClass) {
[devLogClass performSelector:@selector(enableTracking)];
@@ -412,6 +413,7 @@ static int MethodSort(id a, id b, void *context) {
[devLogClass performSelector:@selector(verifyNoMoreLogsExpected)];
[devLogClass performSelector:@selector(disableTracking)];
}
+ [localPool drain];
}
+ (BOOL)isAbstractTestCase {