]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dtrace.dtest/main.c
237dbd18b383e1c8d312938ba937e1fc77d4fe73
1 // BUILD: /usr/sbin/dtrace -h -s main.d -o $TEMP_DIR/probes.h
2 // BUILD: $CC main.c -I$TEMP_DIR -o $BUILD_DIR/dtrace.exe
3 // BUILD: $DYLD_ENV_VARS_ENABLE $BUILD_DIR/dtrace.exe
5 // RUN: $SUDO dtrace -l -n 'dyld_testing*:dtrace.exe:main:callback' -c ./dtrace.exe
18 printf("[BEGIN] dtrace\n");
20 DYLD_TESTING_CALLBACK();
22 if (!DYLD_TESTING_CALLBACK_ENABLED())
23 printf("[FAIL] !DYLD_TESTING_CALLBACK_ENABLED\n");
25 printf("[PASS] dtrace\n");