X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/197008ea33f135c7c4f94a67a2f75a9df7b7771d..797cc9518557438c2166863f4e1804db04ecfa2d:/unit-tests/test-cases/framework-fallback/main.c diff --git a/unit-tests/test-cases/framework-fallback/main.c b/unit-tests/test-cases/framework-fallback/main.c index 13f8146..fdaa893 100644 --- a/unit-tests/test-cases/framework-fallback/main.c +++ b/unit-tests/test-cases/framework-fallback/main.c @@ -37,14 +37,16 @@ int main(int argc, const char* argv[]) { +#if __MAC_OS_X_VERSION_MIN_REQUIRED const struct mach_header *image; - image = NSAddImage("Carbon.framework/Carbon", + image = NSAddImage("AppKit.framework/AppKit", NSADDIMAGE_OPTION_RETURN_ON_ERROR | NSADDIMAGE_OPTION_WITH_SEARCHING); - if ( image != NULL ) - PASS("Carbon loaded"); + if ( image == NULL ) + FAIL("Could not load AppKit"); else - FAIL("Could not load Carbon"); +#endif + PASS("AppKit loaded"); return 0; }