X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/412ebb8e3cc35d457058c31310d89ef96b7c416d..19894a1236eae932b4028640f24ab843f691d4e4:/unit-tests/test-cases/DYLD_LIBRARY_PATH-dyld_env/main.c diff --git a/unit-tests/test-cases/DYLD_LIBRARY_PATH-dyld_env/main.c b/unit-tests/test-cases/DYLD_LIBRARY_PATH-dyld_env/main.c index a903b04..224d93e 100644 --- a/unit-tests/test-cases/DYLD_LIBRARY_PATH-dyld_env/main.c +++ b/unit-tests/test-cases/DYLD_LIBRARY_PATH-dyld_env/main.c @@ -34,12 +34,14 @@ extern int foo(); int main(int argc, const char* argv[]) { +#if __MAC_OS_X_VERSION_MIN_REQUIRED int expectedResult = atoi(argv[1]); int actualResult = foo(); //fprintf(stderr, "foo() returned %d, expected %d\n", actualResult, expectedResult); if ( actualResult != expectedResult ) FAIL("DYLD_VERSIONED_LIBRARY_PATH-basic using wrong dylib. foo() returned %d, expected %d", actualResult, expectedResult); else +#endif PASS("DYLD_VERSIONED_LIBRARY_PATH-basic"); return EXIT_SUCCESS;