]>
git.saurik.com Git - apple/dyld.git/blob - unit-tests/test-cases/dlopen-codesign/main.c
14 void* handle
= dlopen("libfoo.dylib", RTLD_LAZY
);
15 if ( handle
!= NULL
) {
16 FAIL("dlopen-codesign: load of libfoo.dylib should have failed");
19 const char* msg
= dlerror();
20 if ( strstr(msg
, "signature") == NULL
) {
21 FAIL("dlopen-codesign: load of libfoo.dylib failed, but message was wrong: %s", msg
);
25 PASS("dlopen-codesign");