]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen-rpath-from-dylib.dtest/main.c
2 // BUILD: mkdir -p $BUILD_DIR/dir
3 // BUILD: $CC bar.c -dynamiclib -install_name @rpath/libbar.dylib -o $BUILD_DIR/dir/libbar.dylib
4 // BUILD: $CC test.c -dynamiclib -install_name $RUN_DIR/libtest.dylib -o $BUILD_DIR/libtest.dylib -rpath @loader_path/dir
5 // BUILD: $CC main.c -o $BUILD_DIR/dlopen-rpath-from-dylib.exe $BUILD_DIR/libtest.dylib
7 // RUN: ./dlopen-rpath-from-dylib.exe
14 /// test that a call to dlopen() from a dylib uses the LC_RPATH from that dylib
16 extern bool test_dlopen();
20 printf("[BEGIN] dlopen-rpath-from-dylib\n");
23 printf("[PASS] dlopen-rpath-from-dylib\n");
25 printf("[FAIL] dlopen-rpath-from-dylib\n");