diff options
author | Joe Orton <jorton@apache.org> | 2020-02-20 15:36:46 +0100 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2020-02-20 15:36:46 +0100 |
commit | 10ddf63930ebcdf73c86684d86941678f83a5cee (patch) | |
tree | 3df5fc87e3b2a4b3e52fd88f0781f9283f8a56ba /test | |
parent | PKCS#11 URIs usable from 2.4.42 and later now. [skip ci] (diff) | |
download | apache2-10ddf63930ebcdf73c86684d86941678f83a5cee.tar.xz apache2-10ddf63930ebcdf73c86684d86941678f83a5cee.zip |
Add gcc 9 job, enable enhanced malloc debugging for pool-debug job.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874256 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rwxr-xr-x | test/travis_run_linux.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/travis_run_linux.sh b/test/travis_run_linux.sh index c20feb9587..8f0a2fc6db 100755 --- a/test/travis_run_linux.sh +++ b/test/travis_run_linux.sh @@ -29,6 +29,12 @@ make $MFLAGS if ! test -v SKIP_TESTING; then set +e + if test -v TEST_MALLOC; then + # Enable enhanced glibc malloc debugging, see mallopt(3) + export MALLOC_PERTURB_=65 MALLOC_CHECK_=3 + export LIBC_FATAL_STDERR_=1 + fi + if test -v TEST_UBSAN; then export UBSAN_OPTIONS="log_path=$PWD/ubsan.log" fi @@ -58,10 +64,19 @@ if ! test -v SKIP_TESTING; then grep -C5 'Segmentation fault' test/perl-framework/t/logs/error_log RV=2 fi + if test -v TEST_UBSAN && ls ubsan.log.* &> /dev/null; then cat ubsan.log.* RV=3 fi + # With LIBC_FATAL_STDERR_/MALLOC_CHECK_ glibc will abort when + # malloc errors are detected. This should get caught by the + # segfault grep above, but in case it is not, catch it here too: + if grep 'glibc detected' test/perl-framework/t/logs/error_log; then + grep -C20 'glibc detected' test/perl-framework/t/logs/error_log + RV=4 + fi + exit $RV fi |