From: Ivan Maidanski Date: Thu, 5 Oct 2017 22:39:01 +0000 (+0300) Subject: Travis CI: Test also with Leak Sanitizer (LSan) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04d2ae87c5f8b4ede3600edf1d6ab07d7d5f7826;p=libatomic_ops Travis CI: Test also with Leak Sanitizer (LSan) --- diff --git a/.travis.yml b/.travis.yml index 916f155..a0c34c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -150,11 +150,12 @@ matrix: compiler: clang env: - CFLAGS_EXTRA="-fsanitize=address -fno-common -fno-omit-frame-pointer" + - TESTS_CUSTOM_RUN=true - os: linux compiler: clang env: - CFLAGS_EXTRA="-fsanitize=memory,undefined -march=native -fno-omit-frame-pointer" - - MSAN_OR_UBSAN=true + - TESTS_CUSTOM_RUN=true sudo: required - os: linux compiler: clang @@ -448,8 +449,9 @@ script: ~/cppcheck/cppcheck -f --error-exitcode=2 -U long -D CPPCHECK -I src $CPPCHECK_ENABLE tests/*.c src/*.c; fi -- if [[ "$MSAN_OR_UBSAN" == true ]]; then - UBSAN_OPTIONS="halt_on_error=1" make -C tests check-without-test-driver; +- if [[ "$TESTS_CUSTOM_RUN" == true ]]; then + ASAN_OPTIONS="detect_leaks=1" UBSAN_OPTIONS="halt_on_error=1" + make -C tests check-without-test-driver; fi after_success: