X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/39a8cd101b922f08058746122efff58c14b57605..19894a1236eae932b4028640f24ab843f691d4e4:/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 904aeb3..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("AppKit.framework/AppKit", NSADDIMAGE_OPTION_RETURN_ON_ERROR | NSADDIMAGE_OPTION_WITH_SEARCHING); - if ( image != NULL ) - PASS("AppKit loaded"); - else + if ( image == NULL ) FAIL("Could not load AppKit"); + else +#endif + PASS("AppKit loaded"); return 0; }