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:
parent
2b861c1538
commit
13d9bd2692
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)'
|
ulimit -c '$(ulimit -c)'
|
||||||
sysctl kern.coredump=$(sysctl -n kern.coredump)
|
sysctl kern.coredump=$(sysctl -n kern.coredump)
|
||||||
sysctl kern.corefile='$(sysctl -n kern.corefile)'
|
sysctl kern.corefile='$(sysctl -n kern.corefile)'
|
||||||
|
sysctl kern.compress_user_cores='$(sysctl -n kern.compress_user_cores)'
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
ulimit -c unlimited
|
ulimit -c unlimited
|
||||||
sysctl kern.coredump=1
|
sysctl kern.coredump=1
|
||||||
|
sysctl kern.compress_user_cores=0
|
||||||
sysctl kern.corefile="$(pwd)/coredump_phnum_helper.core"
|
sysctl kern.corefile="$(pwd)/coredump_phnum_helper.core"
|
||||||
|
|
||||||
atf_check -s signal:sigabrt "$(atf_get_srcdir)/coredump_phnum_helper"
|
atf_check -s signal:sigabrt "$(atf_get_srcdir)/coredump_phnum_helper"
|
||||||
|
Loading…
Reference in New Issue
Block a user