mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
Fix coredump_phnum_test in case of kern.compress_user_cores=1
PR: 240783 Approved by: ngie, lwhsu MFC after: 1 month Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D21776
This commit is contained in:
1 parent
2b861c1538
commit
13d9bd2692
1 file changed
+2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352653
@@ -45,10 +45,12 @@ coredump_phnum_body()
|
||||
ulimit -c '$(ulimit -c)'
|
||||
sysctl kern.coredump=$(sysctl -n kern.coredump)
|
||||
sysctl kern.corefile='$(sysctl -n kern.corefile)'
|
||||
sysctl kern.compress_user_cores='$(sysctl -n kern.compress_user_cores)'
|
||||
EOF
|
||||
|
||||
ulimit -c unlimited
|
||||
sysctl kern.coredump=1
|
||||
sysctl kern.compress_user_cores=0
|
||||
sysctl kern.corefile="$(pwd)/coredump_phnum_helper.core"
|
||||
|
||||
atf_check -s signal:sigabrt "$(atf_get_srcdir)/coredump_phnum_helper"
|
||||
|
||||
Reference in new issue
Block a user