]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/env-DYLD_FALLBACK_FRAMEWORK_PATH.dtest/main.c
6b547bb8915c0df82973ae6ae8ad9b8e3d0257c2
2 // BUILD: mkdir -p $TEMP_DIR/Foo.framework $BUILD_DIR/FallbackFrameworks/Foo.framework
3 // BUILD: $CC foo.c -dynamiclib -o $TEMP_DIR/Foo.framework/Foo -install_name $RUN_DIR/Foo.framework/Foo -DVALUE=1
4 // BUILD: $CC foo.c -dynamiclib -o $BUILD_DIR/FallbackFrameworks/Foo.framework/Foo -install_name $RUN_DIR/Foo.framework/Foo -DVALUE=42
5 // BUILD: $CC main.c -o $BUILD_DIR/env-DYLD_FALLBACK_FRAMEWORK_PATH.exe $TEMP_DIR/Foo.framework/Foo
6 // BUILD: $DYLD_ENV_VARS_ENABLE $BUILD_DIR/env-DYLD_FALLBACK_FRAMEWORK_PATH.exe
8 // RUN: DYLD_FALLBACK_FRAMEWORK_PATH=$RUN_DIR/FallbackFrameworks/ ./env-DYLD_FALLBACK_FRAMEWORK_PATH.exe
17 printf("[BEGIN] env-DYLD_FALLBACK_FRAMEWORK_PATH\n");
20 printf("[PASS] env-DYLD_FALLBACK_FRAMEWORK_PATH\n");
22 printf("[FAIL] env-DYLD_FALLBACK_FRAMEWORK_PATH\n");