ci: generate as many core files as there are crashes.
@@ -89,6 +89,7 @@ if ! test -v SKIP_TESTING; then
fi
if test -v WITH_TEST_SUITE; then
+ sysctl -w kernel.core_uses_pid=1 2>/dev/null || true
make check TESTS="${TESTS}" TEST_CONFIG="${TEST_ARGS}"
RV=$?
else
@@ -102,7 +103,7 @@ if ! test -v SKIP_TESTING; then
# Skip further testing if a core dump was created during the test
# suite run above.
- if test $RV -eq 0 -a -f test/perl-framework/t/core; then
+ if test $RV -eq 0 && ls test/perl-framework/t/core test/perl-framework/t/core.* &>/dev/null; then
RV=4
fi
@@ -164,6 +165,10 @@ if ! test -v SKIP_TESTING; then
gdb -ex 'thread apply all backtrace' -batch ./httpd test/perl-framework/t/core
RV=5
fi
+ for core in test/perl-framework/t/core.*; do
+ gdb -ex 'thread apply all backtrace' -batch ./httpd "$core"
+ RV=5
+ done
exit $RV
fi
