freebsd-dev/contrib/netbsd-tests
Enji Cooper 8e62f8414e Adjust vm.max_wired in order to avoid hitting EAGAIN artificially
Set vm.max_wired to INT_MAX in :mlock_err, :mlock_mmap, and :mlock_nested to
avoid hitting EAGAIN artificially on the system when running the tests

Require root privileges in order to set the sysctl

Add allow_sysctl_side_effects to require.config as this test is now adjusting
sysctls that can affect the global system state

Unlike the version submitted by cem in OneFS, this version uses a scratch file
to save/restore the previous value of the sysctl. I _really_, _really_ wish
there were better hooks in atf/kyua for per test suite setup/teardown -- using
a file is kludgy, but it's the best I can do to avoid situations where (for
instance), sysctl(3) may fail and drop a core outside the kyua sandbox.

Based on a patch submitted by cem, but modified to take business logic out of
ATF_TP_ADD_TCS(3).

Differential Revision: https://reviews.freebsd.org/D4779
MFC after: 1 month
Sponsored by: EMC / Isilon Storage Division
2016-01-27 06:24:19 +00:00
..
bin Integrate contrib/netbsd-tests/bin/dd into the FreeBSD test suite as 2015-10-18 05:49:58 +00:00
crypto
dev
fs
games Step 1 of eliminating the "games" distribution: Move binaries to /usr/bin; 2015-02-12 05:35:00 +00:00
include Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after atf-c/config.h 2014-11-04 05:02:22 +00:00
ipf
kernel Port contrib/netbsd-tests/kernel/t_mqueue.c to FreeBSD 2015-11-16 05:28:14 +00:00
lib Adjust vm.max_wired in order to avoid hitting EAGAIN artificially 2016-01-27 06:24:19 +00:00
libexec/ld.elf_so
modules
net
rump
sbin
share
sys/rc
usr.bin Use stable output to a test file instead of depending on the OS name being 2015-12-22 01:21:27 +00:00
usr.sbin Put mtree test files into a subdirectory. 2014-11-01 11:07:59 +00:00
FREEBSD-upgrade
h_macros.h