diff options
author | 2008-08-12 17:21:32 +0000 | |
---|---|---|
committer | 2008-08-12 17:21:32 +0000 | |
commit | 7063d76a007fbf636250d7199d6f24ec487163b1 (patch) | |
tree | 5a1f2f0a4b597f62df3e2fe858d76d37b22bbe89 /Foundation/GTMHTTPServerTest.m | |
parent | 43982f07ba6a0a9839e32e774855c9d2068e9d5e (diff) |
- Added GTMNSMakeUncollectable for forcing objects to survive in a GC world.
- Added GTMCFAutorelease to make the [GTMNSMakeCollectable(cfFoo) autorelease] simpler and clearer, it's now just GTMCFAutorelease(cfFoo), and works in both GC and non-GC world.
- Added GTMIsGarbageCollectionEnabled to GTMGarbageCollection.h. See the note there for it's usage.
- Disabled the unittests for things on top of NSAppleScript in a GC world since Apple has bugs and it can crash. See the unittest for a note about it.
- GTMStackTrace now can figure out ObjC symbols. Downside it is now ObjC only.
- GTMFourCharCode can now be used with NSAppleEventDescriptors easily. typeType, typeKeyword, typeApplSignature, and typeEnumerated all get turned into GTMFourCharCodes.
- Fixed up crash in GTMLoggerRingBufferWriter when used with GC on.
- Significant updates to GTMNSAppleScript+Handler allowing you to list all handlers and properties (including inherited) and cleans up several errors in how scripting was being handled.
Diffstat (limited to 'Foundation/GTMHTTPServerTest.m')
-rw-r--r-- | Foundation/GTMHTTPServerTest.m | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Foundation/GTMHTTPServerTest.m b/Foundation/GTMHTTPServerTest.m index d96d54e..fd962af 100644 --- a/Foundation/GTMHTTPServerTest.m +++ b/Foundation/GTMHTTPServerTest.m @@ -52,9 +52,8 @@ // helper that throws while handling its request @interface TestThrowingServerDelegate : TestServerDelegate -// since this method ALWAYS throws, we can mark it as noreturn - (GTMHTTPResponseMessage *)httpServer:(GTMHTTPServer *)server - handleRequest:(GTMHTTPRequestMessage *)request __attribute__ ((noreturn)); + handleRequest:(GTMHTTPRequestMessage *)request; @end // The timings used for waiting for replies @@ -369,8 +368,10 @@ const NSTimeInterval kSendChunkInterval = 0.05; // make sure we see the request at this point STAssertEquals([server activeRequestCount], (NSUInteger)1, @"should have started the request by now"); - // drop the pool to close the connection - [localPool release]; + // force the connection closed and drop the pool to get all the cleanup to + // happen. + [handle closeFile]; + [localPool drain]; // spin the run loop so it should see the close loopIntervalDate = [NSDate dateWithTimeIntervalSinceNow:kRunLoopInterval]; [[NSRunLoop currentRunLoop] runUntilDate:loopIntervalDate]; |