diff --git a/Testing/basic.m b/Testing/basic.m index 62af6d4e2..8ef4dad21 100644 --- a/Testing/basic.m +++ b/Testing/basic.m @@ -52,6 +52,6 @@ int main() NSSetUncaughtExceptionHandler(handler); [NSException raise: NSGenericException format: @"an exception"]; - DESTROY(arp); + IF_NO_GC(DESTROY(arp)); return 0; } diff --git a/Testing/thread-except.m b/Testing/thread-except.m index 4020d1659..80c0cf381 100644 --- a/Testing/thread-except.m +++ b/Testing/thread-except.m @@ -61,7 +61,7 @@ int counter; NS_HANDLER NSLog(@"%@ for thread %d\n", localException, ident); NS_ENDHANDLER - DESTROY(pool); + IF_NO_GC(DESTROY(pool)); counter--; [NSThread exit]; } @@ -100,6 +100,6 @@ int main() fprintf(stderr, "There's a runaway exception! Something is wrong!\n"); NS_ENDHANDLER fclose(file); - DESTROY(pool); + IF_NO_GC(DESTROY(pool)); return 0; } diff --git a/Testing/thread.m b/Testing/thread.m index 4292d9be9..190f839c6 100644 --- a/Testing/thread.m +++ b/Testing/thread.m @@ -123,7 +123,7 @@ int main(int argc, char **argv, char **env) { NSLog(@"ERROR ... retain count is %d, expected 1", [o retainCount]); } - DESTROY(arp); + IF_NO_GC(DESTROY(arp)); return 0; }