travis: Enable TSAN for sanity checking the terminal UI

This commit is contained in:
Thiago de Arruda 2015-08-28 12:29:15 -03:00
parent 5bb4139e6c
commit 7eaeed112e
3 changed files with 24 additions and 15 deletions

View File

@ -61,19 +61,25 @@ build_nvim() {
exit 1
fi
echo "Building libnvim."
if ! ${MAKE_CMD} libnvim; then
exit 1
fi
if [ "$CLANG_SANITIZER" != "TSAN" ]; then
echo "Building libnvim."
if ! ${MAKE_CMD} libnvim; then
exit 1
fi
echo "Building nvim-test."
if ! ${MAKE_CMD} nvim-test; then
exit 1
echo "Building nvim-test."
if ! ${MAKE_CMD} nvim-test; then
exit 1
fi
fi
# Invoke nvim to trigger *San early.
bin/nvim --version
bin/nvim -u NONE -e -c ':qall'
if ! (bin/nvim --version && bin/nvim -u NONE -e -c ':qall'); then
asan_check "${LOG_DIR}"
exit 1
fi
asan_check "${LOG_DIR}"
cd "${TRAVIS_BUILD_DIR}"
}

View File

@ -17,8 +17,12 @@ source "${CI_DIR}/common/test.sh"
build_nvim
run_unittests
run_functionaltests
if [ "$CLANG_SANITIZER" != "TSAN" ]; then
# Additional threads are only created when the builtin UI starts, which
# doesn't happen in the unit/functional tests
run_unittests
run_functionaltests
fi
run_oldtests
install_nvim

View File

@ -77,10 +77,9 @@ matrix:
- os: linux
compiler: clang-3.6
env: GCOV=llvm-cov-3.6 CLANG_SANITIZER=MSAN
# FIXME (tarruda): Uncomment when TSan tests don't hang anymore.
#- os: linux
# compiler: clang-3.6
# env: GCOV=llvm-cov-3.6 CLANG_SANITIZER=TSAN
- os: linux
compiler: clang-3.6
env: GCOV=llvm-cov-3.6 CLANG_SANITIZER=TSAN
- os: osx
compiler: clang
env: GCOV=gcov