summaryrefslogtreecommitdiffstats
path: root/test/travis_run_linux.sh
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2020-12-11 13:02:56 +0100
committerYann Ylavic <ylavic@apache.org>2020-12-11 13:02:56 +0100
commitaa3b99e92571485593819484a2c2c6f2d850048e (patch)
treecf38ebddcdf53981cc116ee71a39fa68e230128c /test/travis_run_linux.sh
parentFollow up to r1836032: better flush limits checks and description. (diff)
downloadapache2-aa3b99e92571485593819484a2c2c6f2d850048e.tar.xz
apache2-aa3b99e92571485593819484a2c2c6f2d850048e.zip
ci: generate as many core files as there are crashes.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884306 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/travis_run_linux.sh')
-rwxr-xr-xtest/travis_run_linux.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/travis_run_linux.sh b/test/travis_run_linux.sh
index cf9064a848..bc4133afb3 100755
--- a/test/travis_run_linux.sh
+++ b/test/travis_run_linux.sh
@@ -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