X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/bac542e65c0030c0d819c7ff1dcfc25892a61844..797cc9518557438c2166863f4e1804db04ecfa2d:/unit-tests/test-cases/bundle-dont-gc/main.c diff --git a/unit-tests/test-cases/bundle-dont-gc/main.c b/unit-tests/test-cases/bundle-dont-gc/main.c index 69e2f2c..c79afe0 100644 --- a/unit-tests/test-cases/bundle-dont-gc/main.c +++ b/unit-tests/test-cases/bundle-dont-gc/main.c @@ -34,6 +34,8 @@ int main(int argc, const char* argv[]) { +// NSObjectFile* APIs are only available on Mac OS X - not iPhone OS +#if __MAC_OS_X_VERSION_MIN_REQUIRED // load foo.bundle with old API NSObjectFileImage ofi; if ( NSCreateObjectFileImageFromFile("foo.bundle", &ofi) != NSObjectFileImageSuccess ) { @@ -84,8 +86,8 @@ int main(int argc, const char* argv[]) FAIL("NSUnLinkModule failed"); return 1; } - - +#endif + PASS("bundle-dont-gc"); return EXIT_SUCCESS; }