]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen-rpath-implicit.dtest/main.c
2 // BUILD: $CC foo.c -dynamiclib -install_name @rpath/libimplicitrpath.dylib -o $BUILD_DIR/dir1/libimplicitrpath.dylib
3 // BUILD: $CC main.c -o $BUILD_DIR/dlopen-rpath-implicit.exe -rpath @loader_path/dir1
5 // RUN: ./dlopen-rpath-implicit.exe
10 #include "test_support.h"
12 /// test that a leaf name passed to dlopen() searches the rpath
14 int main(int argc
, const char* argv
[], const char* envp
[], const char* apple
[]) {
15 void* handle
= dlopen("libimplicitrpath.dylib", RTLD_LAZY
);
16 if ( handle
== NULL
) {
17 FAIL("dlopen(\"libimplicitrpath.dylib\") failed: %s", dlerror());