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
This commit is contained in:
Enji Cooper 2017-08-13 00:14:08 +00:00
parent ebe3e93cef
commit 737fb907a7

View file

@ -8,4 +8,6 @@ LIBADD+= nv
WARNS?= 3
TEST_METADATA.sysctl_test+= required_user="root"
.include <bsd.test.mk>