On systems configured with kern.compress_user_cores=1, this test will always fail
Details
Details
Before this patch:
# sysctl kern.compress_user_cores=1 kern.compress_user_cores: 0 -> 1 # kyua test -k /usr/tests/Kyuafile sys/kern/coredump_phnum_test sys/kern/coredump_phnum_test:coredump_phnum -> failed: Helper program did not dump core [3.014s] Results file id is usr_tests.20190924-072623-834696 Results saved to /root/.kyua/store/results.usr_tests.20190924-072623-834696.db 0/1 passed (1 failed)
After this patch:
# sysctl kern.compress_user_cores=1 kern.compress_user_cores: 0 -> 1 # kyua test -k /usr/tests/Kyuafile sys/kern/coredump_phnum_test sys/kern/coredump_phnum_test:coredump_phnum -> passed [2.003s] Results file id is usr_tests.20190924-072755-601239 Results saved to /root/.kyua/store/results.usr_tests.20190924-072755-601239.db 1/1 passed (0 failed)
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Coincidentally, I have a different fix for this in a work-in-progress tree. My change keeps the current value of kern.compress_user_cores and decompresses the core file. It has the advantage of providing test coverage for kern.compress_user_cores (if the user enables it). I can't find any existing test coverage.
See D21820. What do you think?
Comment Actions
That your fix is better than mine :-)
So feel free to overwrite my changes with yours.