This uses the same fix as r294894 did for the mlock test. The code from
that commit is moved into a common object file which PROGS supports
building first.
Sponsored by: Dell EMC Isilon
Differential D8689
Fix setrlimit_test:setrlimit_memlock when the system has exceeded vm.max_wired. bdrewery on Dec 1 2016, 10:09 PM. Authored by Tags None Referenced Files
Subscribers None
Details This uses the same fix as r294894 did for the mlock test. The code from Sponsored by: Dell EMC Isilon /usr/tests/lib/libc/sys # kyua test setrlimit_test setrlimit_test:setrlimit_basic -> passed [0.004s] setrlimit_test:setrlimit_current -> passed [0.004s] setrlimit_test:setrlimit_err -> passed [0.004s] setrlimit_test:setrlimit_fsize -> passed [0.004s] setrlimit_test:setrlimit_memlock -> skipped: Required configuration property 'allow_sysctl_side_effects' not defined [0.002s] setrlimit_test:setrlimit_nofile_1 -> passed [0.005s] setrlimit_test:setrlimit_nofile_2 -> passed [0.005s] setrlimit_test:setrlimit_nproc -> passed [0.539s] setrlimit_test:setrlimit_perm -> passed [0.005s] setrlimit_test:setrlimit_stack -> passed [0.005s] Results file id is usr_tests_lib_libc_sys.20161201-220229-061447 Results saved to /root/.kyua/store/results.usr_tests_lib_libc_sys.20161201-220229-061447.db 10/10 passed (0 failed) /usr/tests/lib/libc/sys # kyua test mlock_test mlock_test:mlock_clip -> passed [0.004s] mlock_test:mlock_err -> skipped: Required configuration property 'allow_sysctl_side_effects' not defined [0.002s] mlock_test:mlock_limits -> passed [0.005s] mlock_test:mlock_mmap -> skipped: Required configuration property 'allow_sysctl_side_effects' not defined [0.002s] mlock_test:mlock_nested -> skipped: Required configuration property 'allow_sysctl_side_effects' not defined [0.002s] Results file id is usr_tests_lib_libc_sys.20161201-220634-156194 Results saved to /root/.kyua/store/results.usr_tests_lib_libc_sys.20161201-220634-156194.db 5/5 passed (0 failed) Enabling the sysctl config: /usr/tests/lib/libc/sys # kyua test setrlimit_test setrlimit_test:setrlimit_basic -> passed [0.004s] setrlimit_test:setrlimit_current -> passed [0.004s] setrlimit_test:setrlimit_err -> passed [0.004s] setrlimit_test:setrlimit_fsize -> passed [0.004s] setrlimit_test:setrlimit_memlock -> passed [0.005s] setrlimit_test:setrlimit_nofile_1 -> passed [0.005s] setrlimit_test:setrlimit_nofile_2 -> passed [0.005s] setrlimit_test:setrlimit_nproc -> passed [0.539s] setrlimit_test:setrlimit_perm -> passed [0.004s] setrlimit_test:setrlimit_stack -> passed [0.004s] Results file id is usr_tests_lib_libc_sys.20161201-220304-213242 Results saved to /root/.kyua/store/results.usr_tests_lib_libc_sys.20161201-220304-213242.db 10/10 passed (0 failed) /usr/tests/lib/libc/sys # kyua test mlock_test mlock_test:mlock_clip -> passed [0.004s] mlock_test:mlock_err -> failed: /root/git/freebsd/contrib/netbsd-tests/lib/libc/sys/t_mlock.c:136: Expected errno 12, got 22, in mlock((char *)-1, page) == -1 [0.004s] mlock_test:mlock_limits -> passed [0.005s] mlock_test:mlock_mmap -> passed [0.004s] mlock_test:mlock_nested -> passed [0.004s] Results file id is usr_tests_lib_libc_sys.20161201-220643-878354 Results saved to /root/.kyua/store/results.usr_tests_lib_libc_sys.20161201-220643-878354.db 4/5 passed (1 failed) The mlock_test:mlock_err already exists and is a separate issue.
Diff Detail
Event TimelineComment Actions Sidenote: :mlock_err failing is something that I've known about for a while. It doesn't happen internal to Isilon, but it definitely happens on my workstations/VMs. |