]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/env-DYLD_FALLBACK_FRAMEWORK_PATH.dtest/main.c
2 // BUILD: $CC foo.c -dynamiclib -o $BUILD_DIR/Foo.framework/Foo -install_name $RUN_DIR/Foo.framework/Foo -DVALUE=1
3 // BUILD: $CC foo.c -dynamiclib -o $BUILD_DIR/FallbackFrameworks/Foo.framework/Foo -install_name $RUN_DIR/Foo.framework/Foo -DVALUE=42
4 // BUILD: $CC main.c -o $BUILD_DIR/env-DYLD_FALLBACK_FRAMEWORK_PATH.exe $BUILD_DIR/Foo.framework/Foo
5 // BUILD: $DYLD_ENV_VARS_ENABLE $BUILD_DIR/env-DYLD_FALLBACK_FRAMEWORK_PATH.exe
7 // BUILD: $SKIP_INSTALL $BUILD_DIR/Foo.framework/Foo
9 // RUN: DYLD_FALLBACK_FRAMEWORK_PATH=$RUN_DIR/FallbackFrameworks/ ./env-DYLD_FALLBACK_FRAMEWORK_PATH.exe
14 #include "test_support.h"
18 int main(int argc
, const char* argv
[], const char* envp
[], const char* apple
[]) {
22 FAIL("foo() was not 42");