From eaa5ded5dba34473ff45f9cab07dd034b27d0284 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 6 Oct 2017 21:31:35 +0300 Subject: [PATCH] Travis CI: Test also with Leak Sanitizer (LSan) (Cherry-pick commit 5c8663d from 'master' branch.) --- .travis.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c9f56407..ca8b25c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -283,6 +283,7 @@ matrix: - CXX=clang++-4.0 - CFLAGS_EXTRA="-fsanitize=address -fno-common -fno-omit-frame-pointer" - CONF_OPTIONS="--enable-cplusplus" + - TESTS_CUSTOM_RUN=true - os: linux addons: apt: @@ -296,13 +297,13 @@ matrix: env: - CFLAGS_EXTRA="-fsanitize=memory -fno-omit-frame-pointer -D NO_INCREMENTAL" - CONF_OPTIONS="--enable-handle-fork --enable-munmap" - - MSAN_OR_UBSAN=true + - TESTS_CUSTOM_RUN=true sudo: required - os: linux compiler: clang env: - CFLAGS_EXTRA="-fsanitize=undefined -fno-common -fno-omit-frame-pointer" - - MSAN_OR_UBSAN=true + - TESTS_CUSTOM_RUN=true - CONF_OPTIONS="--enable-cplusplus --enable-handle-fork --enable-munmap" - os: linux addons: @@ -473,8 +474,8 @@ script: *.cc cord/*.c cord/tests/*.c tests/*.c tests/*.cc tools/*.c extra/gc.c; fi -- if [[ "$MSAN_OR_UBSAN" == true ]]; then - UBSAN_OPTIONS="halt_on_error=1" make check; +- if [[ "$TESTS_CUSTOM_RUN" == true ]]; then + ASAN_OPTIONS="detect_leaks=1" UBSAN_OPTIONS="halt_on_error=1" make check; fi after_success: -- 2.40.0