// Loads a tweak dylib into a throwaway process (harmless check that the arm64e slice loads and its constructor runs). // loadtest [seconds]. With ISLET_SELFTEST= the dylib renders its cards there and exits by itself. #import #import int main(int argc, char **argv) { @autoreleasepool { void *h = dlopen(argv[1], RTLD_NOW); printf("dlopen: %s\n", h ? "ok" : dlerror()); if (!h) return 1; [[NSRunLoop mainRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:argc > 2 ? atof(argv[2]) : 4]]; printf("PASS\n"); } return 0; }