Index: tests/sys/audit/process-control.c =================================================================== --- tests/sys/audit/process-control.c (revision 345541) +++ tests/sys/audit/process-control.c (working copy) @@ -1515,8 +1515,10 @@ int capinfo; size_t len = sizeof(capinfo); const char *capname = "kern.features.security_capability_mode"; - ATF_REQUIRE_EQ(0, sysctlbyname(capname, &capinfo, &len, NULL, 0)); + if (sysctlbyname(capname, &capinfo, &len, NULL, 0) == -1) + atf_tc_skip("sysctl %s doesn't exist", capname); + /* Without CAPABILITY_MODE enabled, cap_enter() returns ENOSYS */ if (!capinfo) atf_tc_skip("Capsicum is not enabled in the system"); @@ -1553,8 +1555,10 @@ int capinfo, modep; size_t len = sizeof(capinfo); const char *capname = "kern.features.security_capability_mode"; - ATF_REQUIRE_EQ(0, sysctlbyname(capname, &capinfo, &len, NULL, 0)); + if (sysctlbyname(capname, &capinfo, &len, NULL, 0) == -1) + atf_tc_skip("sysctl %s doesn't exist", capname); + /* Without CAPABILITY_MODE enabled, cap_getmode() returns ENOSYS */ if (!capinfo) atf_tc_skip("Capsicum is not enabled in the system");