]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen-long-error-message.dtest/main.c
2 // BUILD: $CC main.c -o $BUILD_DIR/dlopen-long-error-message.exe
4 // RUN: ./dlopen-long-error-message.exe
15 printf("[BEGIN] dlopen-long-error-message\n");
17 for (int i
=0; i
< 10; ++i
) {
18 void* handle
= dlopen("/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/bogus/path/libbogus.dylib", RTLD_FIRST
);
19 if ( handle
!= NULL
) {
20 printf("[FAIL] dlopen-long-error-message should have failed on non-existent file\n");
23 free(strdup("hello there"));
26 printf("[PASS] dlopen-long-error-message\n");