From e1a756110f0ef2c04e51c34a83db98b81263acf1 Mon Sep 17 00:00:00 2001 From: qmathe Date: Mon, 4 Oct 2010 15:57:14 +0000 Subject: [PATCH] Tweaked libobjc2 test suite to compile once again on Mac OS X (all tests pass) --- Test/RuntimeTest.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Test/RuntimeTest.m b/Test/RuntimeTest.m index 94a91e4..88ac5d0 100644 --- a/Test/RuntimeTest.m +++ b/Test/RuntimeTest.m @@ -235,10 +235,10 @@ int main (int argc, const char * argv[]) testClassHierarchy(); printf("Instance of NSObject: %p\n", class_createInstance([NSObject class], 0)); - CREATE_AUTORELEASE_POOL(pool); + NSAutoreleasePool *pool = [NSAutoreleasePool new]; testSynchronized(); testExceptions(); - DESTROY(pool); + [pool release]; return exitStatus; }