svn commit: r322448 - head/lib/libcasper/services/cap_sysctl/tests
Ngie Cooper
ngie at FreeBSD.org
Sun Aug 13 00:14:09 UTC 2017
Author: ngie
Date: Sun Aug 13 00:14:08 2017
New Revision: 322448
URL: https://svnweb.freebsd.org/changeset/base/322448
Log:
Make root-privileges a requirement for the test
Some of the testcases try to manipulate sysctls that require root privileges,
e.g., "kern.sync_on_panic". Make root-privileges a hard requirement so the
tests don't raise false positives due to privilege issues when calling
sysctlbyname(3) on writable sysctls.
MFC after: 1 week
Modified:
head/lib/libcasper/services/cap_sysctl/tests/Makefile
Modified: head/lib/libcasper/services/cap_sysctl/tests/Makefile
==============================================================================
--- head/lib/libcasper/services/cap_sysctl/tests/Makefile Sun Aug 13 00:04:50 2017 (r322447)
+++ head/lib/libcasper/services/cap_sysctl/tests/Makefile Sun Aug 13 00:14:08 2017 (r322448)
@@ -8,4 +8,6 @@ LIBADD+= nv
WARNS?= 3
+TEST_METADATA.sysctl_test+= required_user="root"
+
.include <bsd.test.mk>
More information about the svn-src-all
mailing list