projects
/
apple
/
dyld.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
dyld-750.5.tar.gz
[apple/dyld.git]
/
testing
/
test-cases
/
dlopen-rpath-from-dylib.dtest
/
test.c
1
2
#include <stdio.h>
3
#include <dlfcn.h>
4
#include <stdbool.h>
5
6
#include
"test_support.h"
7
8
void
test_dlopen
()
9
{
10
void
*
handle
=
dlopen
(
"@rpath/libbar.dylib"
,
RTLD_LAZY
);
11
if
(
handle
==
NULL
) {
12
FAIL
(
"dlopen(
\"
@rpath/libbar.dylib
\"
) failed: %s"
,
dlerror
());
13
}
14
dlclose
(
handle
);
15
}
16