aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMFileSystemKQueueTest.m
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2013-12-19 21:30:10 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2013-12-19 21:30:10 +0000
commit9b8635767148b3f95942593bfeefa86f147d2c53 (patch)
tree357cf2390edbb1d150830133228cda393203ee48 /Foundation/GTMFileSystemKQueueTest.m
parentca3d74790bcf2d42bc6a9c3dc653c7e8a485705c (diff)
Fix build of Mac GTM project with static analyzer. Remove GTMGarbageCollection. Remove GC build configs. Remove internal dependence on GTMObjectSingleton.
DELTA=447 (49 added, 296 deleted, 102 changed)
Diffstat (limited to 'Foundation/GTMFileSystemKQueueTest.m')
-rw-r--r--Foundation/GTMFileSystemKQueueTest.m14
1 files changed, 4 insertions, 10 deletions
diff --git a/Foundation/GTMFileSystemKQueueTest.m b/Foundation/GTMFileSystemKQueueTest.m
index d80f161..a8eec37 100644
--- a/Foundation/GTMFileSystemKQueueTest.m
+++ b/Foundation/GTMFileSystemKQueueTest.m
@@ -18,7 +18,6 @@
#import "GTMSenTestCase.h"
#import "GTMFileSystemKQueue.h"
-#import "GTMGarbageCollection.h"
#import "GTMUnitTestDevLog.h"
@@ -509,15 +508,10 @@
#endif // MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
// Now destroy the queue, with events outstanding from the CFSocket, but
- // unconsumed. For GC this involves us using a private method since |helper|
- // still has a reference. For non-GC we'll force the release.
- if (GTMIsGarbageCollectionEnabled()) {
- [testKQ unregisterWithKQueue];
- } else {
- STAssertEquals([testKQ retainCount], (NSUInteger)1, nil);
- [testKQ release];
- testKQ = nil;
- }
+ // unconsumed.
+ STAssertEquals([testKQ retainCount], (NSUInteger)1, nil);
+ [testKQ release];
+ testKQ = nil;
// Spin the runloop, no events were delivered (and we should not hang)
[self spinForEvents:helper];