X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/39a8cd101b922f08058746122efff58c14b57605..797cc9518557438c2166863f4e1804db04ecfa2d:/unit-tests/test-cases/bundle-memory-load-malloc/main.c diff --git a/unit-tests/test-cases/bundle-memory-load-malloc/main.c b/unit-tests/test-cases/bundle-memory-load-malloc/main.c index d00fbde..47e8792 100644 --- a/unit-tests/test-cases/bundle-memory-load-malloc/main.c +++ b/unit-tests/test-cases/bundle-memory-load-malloc/main.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2005-2009 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -30,6 +30,7 @@ #include #include #include +#include #include "test.h" // PASS(), FAIL() @@ -38,6 +39,8 @@ typedef bool (*CheckFunc)(); int main() { +// NSCreateObjectFileImageFromMemory is only available on Mac OS X - not iPhone OS +#if __MAC_OS_X_VERSION_MIN_REQUIRED int fd = open("test.bundle", O_RDONLY, 0); if ( fd == -1 ) { FAIL("open() failed"); @@ -111,9 +114,8 @@ int main() return 1; } - - // Should check that loadAddress is unmmaped now (by call to NSDestroyObjectFileImage) +#endif PASS("bundle-memory-load-malloc"); return 0;