If kern.compress_user_cores is non-zero, decompress the core file.
Use sysctl -f to restore previous values.
Don't bother restoring ulimit -c, since that's a per-process value.
Check more commands with atf_check.
Differential D21820
Fix coredump_phnum_test when kern.compress_user_cores != 0 vangyzen on Sep 27 2019, 3:02 PM. Authored by Tags None Referenced Files
Details If kern.compress_user_cores is non-zero, decompress the core file. Use sysctl -f to restore previous values. Don't bother restoring ulimit -c, since that's a per-process value. Check more commands with atf_check. # sysctl kern.compress_user_cores=0 kern.compress_user_cores: 0 -> 0 # kyua test coredump_phnum_test coredump_phnum_test:coredump_phnum -> passed [4.233s] Results file id is usr_tests_sys_kern.20190917-225547-131047 Results saved to /root/.kyua/store/results.usr_tests_sys_kern.20190917-225547-131047.db 1/1 passed (0 failed) # sysctl kern.compress_user_cores=1 kern.compress_user_cores: 0 -> 1 # kyua test coredump_phnum_test coredump_phnum_test:coredump_phnum -> passed [4.369s] Results file id is usr_tests_sys_kern.20190917-225555-085154 Results saved to /root/.kyua/store/results.usr_tests_sys_kern.20190917-225555-085154.db 1/1 passed (0 failed) # sysctl kern.compress_user_cores=2 kern.compress_user_cores: 1 -> 2 # kyua test coredump_phnum_test coredump_phnum_test:coredump_phnum -> passed [1.112s] Results file id is usr_tests_sys_kern.20190917-225604-053209 Results saved to /root/.kyua/store/results.usr_tests_sys_kern.20190917-225604-053209.db 1/1 passed (0 failed)
Diff Detail
|