From: Ivan Maidanski Date: Thu, 5 Oct 2017 22:39:01 +0000 (+0300) Subject: Travis CI: Test also with Leak Sanitizer (LSan) X-Git-Tag: v7.6.2~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac2b777a79f402b27ea9580bdda6a94a81e1f120;p=libatomic_ops Travis CI: Test also with Leak Sanitizer (LSan) --- diff --git a/.travis.yml b/.travis.yml index 47c7279..f881ffb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -138,11 +138,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 @@ -431,8 +432,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: