opnsense-src/contrib/netbsd-tests/lib
Enji Cooper cc7734cbac Change the process limits for RLIMIT_MEMLOCK to RLIM_INFINITY when
executing :mincore_resid

The default process limits in FreeBSD is 64kB for unprivileged users,
which empirically is too low to run the :mincore_resid testcase.

Process limits are inherited, so even though the default limit for
root users is RLIM_INFINITY, the inherited limit with "sudo" with the
default login.conf will be 64kB.

Use setrlimit to set rlim_max for RLIMIT_MEMLOCK to RLIM_INFINITY to
avoid ENOMEM issues when calling mlock to wire the mmap'ed address
space.

setrlimit requires root access to increase rlim_max, so require root
privileges when running the test

Discovered when executing the tests with sudo, e.g.
"sudo kyua test -k /usr/tests/lib/libc/sys/Kyuafile mincore_test"

MFC after:	2 weeks
2016-12-10 22:08:33 +00:00
..
csu
libbluetooth
libbpfjit Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
libc Change the process limits for RLIMIT_MEMLOCK to RLIM_INFINITY when 2016-12-10 22:08:33 +00:00
libcrypt Hack test so that it works on FreeBSD. 2015-12-01 21:22:29 +00:00
libcurses Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
libdes
libevent
libexecinfo 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
libm Don't expect :fmod to fail on FreeBSD 2016-09-02 06:55:32 +00:00
libobjc
libposix
libppath
libprop
libpthread Skip test on FreeBSD only. So test can be upstreamed to NetBSD. 2016-10-18 22:53:58 +00:00
librt Call sem_unlink on semaphores before attempting to create them 2014-11-16 06:59:58 +00:00
librumpclient Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
librumphijack Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
libskey
libsljit
libusbhid Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
libutil Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
semaphore