]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen_preflight.dtest/main.c
2 // BUILD: $CC main.c -DRUN_DIR="$RUN_DIR" -o $BUILD_DIR/dlopen_preflight.exe
4 // RUN: ./dlopen_preflight.exe
9 #include "test_support.h"
11 int main(int argc
, const char* argv
[], const char* envp
[], const char* apple
[])
13 if ( !dlopen_preflight("/System/Library/Frameworks/Foundation.framework/Foundation") ) {
14 FAIL("Foundation.framework cannot be found");
18 if ( !dlopen_preflight("/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation") ) {
19 FAIL("Foundation.framework via symlink cannot be found");