]> granicus.if.org Git - gc/commitdiff
Travis CI: Test also with Leak Sanitizer (LSan)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 6 Oct 2017 18:31:35 +0000 (21:31 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 12 Oct 2017 05:53:10 +0000 (08:53 +0300)
(Cherry-pick commit 5c8663d from 'master' branch.)

.travis.yml

index c9f564077ef8958bc1d0859d3ac9df1906c05bc9..ca8b25c310c8745b9a960b477870b3d5912e3cee 100644 (file)
@@ -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: