]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
ci: generate as many core files as there are crashes.
authorYann Ylavic <ylavic@apache.org>
Fri, 11 Dec 2020 12:02:56 +0000 (12:02 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 11 Dec 2020 12:02:56 +0000 (12:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884306 13f79535-47bb-0310-9956-ffa450edef68

test/travis_run_linux.sh

index cf9064a848d7dc961f969d85f6bfa9de21220154..bc4133afb3bf07d40133f0664275547c1ac9d635 100755 (executable)
@@ -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