- 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:
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:
*.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: