Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d6d86a2

Browse files
committedApr 5, 2022
travis: generate/show coredumps from pytests.
1 parent f2e7f3a commit d6d86a2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎test/pyhttpd/env.py

+1
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ def install_test_conf(self, lines: List[str]):
482482
with open(self._test_conf, 'w') as fd:
483483
fd.write('\n'.join(self._httpd_base_conf))
484484
fd.write('\n')
485+
fd.write(f"CoreDumpDirectory {self._server_dir}\n")
485486
if self._verbosity >= 2:
486487
fd.write(f"LogLevel core:trace5 {self.mpm_module}:trace5\n")
487488
if self._log_interesting:

‎test/travis_run_linux.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ if ! test -v SKIP_TESTING; then
115115

116116
# Try to keep all potential coredumps from all processes
117117
sudo sysctl -w kernel.core_uses_pid=1 2>/dev/null || true
118+
ulimit -c unlimited 2>/dev/null || true
118119

119120
if ! test -v NO_TEST_FRAMEWORK; then
120121
if test -v WITH_TEST_SUITE; then
@@ -267,7 +268,7 @@ if ! test -v SKIP_TESTING; then
267268
fi
268269
fi
269270

270-
for core in `ls test/perl-framework/t/core{,.*} 2>/dev/null`; do
271+
for core in `ls test/perl-framework/t/core{,.*} test/gen/apache/core{,.*} 2>/dev/null`; do
271272
gdb -ex 'thread apply all backtrace full' -batch ./httpd "$core"
272273
RV=5
273274
done

0 commit comments

Comments
 (0)
Please sign in to comment.