X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..f427ee49d309d8fc33ebf3042c3a775f2f530ded:/tests/proc_info_udata.c diff --git a/tests/proc_info_udata.c b/tests/proc_info_udata.c index 4482e275c..9cfe9bc7c 100644 --- a/tests/proc_info_udata.c +++ b/tests/proc_info_udata.c @@ -3,6 +3,9 @@ #include "../libsyscall/wrappers/libproc/libproc.h" #include #include +#include + +T_GLOBAL_META(T_META_RUN_CONCURRENTLY(true)); T_DECL(proc_udata_info, "Get and set a proc udata token"){ uint64_t token = mach_absolute_time(); @@ -12,11 +15,11 @@ T_DECL(proc_udata_info, "Get and set a proc udata token"){ udata = token; ret = proc_udata_info(getpid(), PROC_UDATA_INFO_SET, &udata, sizeof(udata)); -#if CONFIG_EMBEDDED +#if !TARGET_OS_OSX T_WITH_ERRNO; - T_ASSERT_EQ_INT(ret, -1, "proc_udata_info PROC_UDATA_INFO_SET returns error on non-macOS"); - T_SKIP("Remaining tests are only supported on macOS"); -#endif /* CONFIG_EMBEDDED */ + T_ASSERT_EQ_INT(ret, -1, "proc_udata_info PROC_UDATA_INFO_SET returns error on non-supported platforms"); + T_SKIP("Remaining tests are only supported on platforms with CONFIG_PROC_UDATA_STORAGE configured"); +#endif T_WITH_ERRNO; T_ASSERT_EQ_INT(ret, 0, "proc_udata_info PROC_UDATA_INFO_SET");