#include <stdio.h>
#include <dlfcn.h>
#include "test_support.h"
int main(int argc, const char* argv[], const char* envp[], const char* apple[]) {
void* handle = dlopen("signed.dylib", RTLD_LAZY);
if ( handle == NULL ) {
FAIL("dlerror(): %s", dlerror());
} else {
int result = dlclose(handle);
if ( result != 0 ) {
FAIL("dlclose() returned %c", result);
}
}
handle = dlopen("unsigned.dylib", RTLD_LAZY);
if ( handle != NULL ) {
FAIL("dlerror(): %s", dlerror());
} else {
int result = dlclose(handle);
if ( result != 0 ) {
FAIL("dlclose() returned %c", result);
}
}
PASS("Success");
}