]>
git.saurik.com Git - apple/xnu.git/blob - tests/ptrauth_data_tests.c
1 #include <darwintest.h>
2 #include <sys/sysctl.h>
4 T_GLOBAL_META(T_META_NAMESPACE("xnu.arm"));
6 T_DECL(ptrauth_data_tests
, "invoke the PAC unit tests", T_META_ASROOT(true))
8 #if __has_feature(ptrauth_calls)
10 ret
= sysctlbyname("kern.run_ptrauth_data_tests", NULL
, NULL
, &dummy
, sizeof(dummy
));
11 T_ASSERT_POSIX_SUCCESS(ret
, "run ptrauth data tests");
13 T_SKIP("Running on non-ptrauth system. Skipping...");
14 #endif //__has_feature(ptrauth_calls)