]> git.saurik.com Git - apple/objc4.git/blobdiff - test/cdtors.mm
objc4-680.tar.gz
[apple/objc4.git] / test / cdtors.mm
index 9fc76889f82afd0a5feeed51f2868f2f6b76f1af..c91e738a3082dd566495be7b82a164036eba4596 100644 (file)
@@ -1,6 +1,7 @@
 // TEST_CONFIG
 
 #if USE_FOUNDATION
+#include <Foundation/Foundation.h>
 #define SUPERCLASS NSObject
 #define FILENAME "nscdtors.mm"
 #else
@@ -275,6 +276,11 @@ void test_batch(void)
 
 int main()
 {
+    if (objc_collectingEnabled()) {
+        testwarn("rdar://19042235 test disabled in GC because it is slow");
+        succeed(FILENAME);
+    }
+
     for (int i = 0; i < 1000; i++) {
         testonthread(^{ test_single(); });
         testonthread(^{ test_inplace(); });