From b06e718ad04bc6667743ecdfc46071ea145156e5 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Mon, 12 Jan 2009 18:42:03 +0000 Subject: [PATCH] Minor tidyups git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27583 72102866-910b-0410-8b05-ffd578937521 --- Testing/basic.m | 2 +- Testing/thread-except.m | 4 ++-- Testing/thread.m | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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; }