]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/test-cases/framework-fallback/main.c
dyld-353.2.1.tar.gz
[apple/dyld.git] / unit-tests / test-cases / framework-fallback / main.c
index 13f8146616019d04582275a206d0c9c5061a49a3..fdaa89366a485749fa7b5525ed3da1876f989f80 100644 (file)
 int
 main(int argc, const char* argv[])
 {
 int
 main(int argc, const char* argv[])
 {
+#if __MAC_OS_X_VERSION_MIN_REQUIRED
        const struct mach_header *image;
 
        const struct mach_header *image;
 
-       image = NSAddImage("Carbon.framework/Carbon",
+       image = NSAddImage("AppKit.framework/AppKit",
                        NSADDIMAGE_OPTION_RETURN_ON_ERROR | NSADDIMAGE_OPTION_WITH_SEARCHING);
                        NSADDIMAGE_OPTION_RETURN_ON_ERROR | NSADDIMAGE_OPTION_WITH_SEARCHING);
-       if ( image != NULL )
-               PASS("Carbon loaded");
+       if ( image == NULL )
+               FAIL("Could not load AppKit");
        else
        else
-               FAIL("Could not load Carbon");
+#endif
+               PASS("AppKit loaded");
 
        return 0;
 }
 
        return 0;
 }