Travis CI: Test also with Leak Sanitizer (LSan)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 5 Oct 2017 22:39:01 +0000 (01:39 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 13 Oct 2017 07:16:46 +0000 (10:16 +0300)
.travis.yml

index 47c7279..f881ffb 100644 (file)
@@ -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: