]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen-rpath-implicit.dtest/main.c
6d43d7f14647086c341e85bf2d0bcdd7eddceb76
2 // BUILD: mkdir -p $BUILD_DIR/dir1
3 // BUILD: $CC foo.c -dynamiclib -install_name @rpath/libimplicitrpath.dylib -o $BUILD_DIR/dir1/libimplicitrpath.dylib
4 // BUILD: $CC main.c -o $BUILD_DIR/dlopen-rpath-implicit.exe -rpath @loader_path/dir1
6 // RUN: ./dlopen-rpath-implicit.exe
12 /// test that a leaf name passed to dlopen() searches the rpath
16 printf("[BEGIN] dlopen-rpath-implicit\n");
18 void* handle
= dlopen("libimplicitrpath.dylib", RTLD_LAZY
);
19 if ( handle
== NULL
) {
20 printf("[FAIL] dlopen-rpath-implicit: dlopen(libimplicitrpath.dylib) failed: %s\n", dlerror());
26 printf("[PASS] dlopen-rpath-implicit\n");