ci: Travis: check logs for TSan also (#10775)

Uses `cat -A` with early "*San" check:
This prints terminal escape sequences as-is (for debugging), and does
not cause (display) issues with the Travis log.

Ref: https://github.com/neovim/neovim/pull/10591#issuecomment-521248233
This commit is contained in:
Daniel Hahler 2019-08-14 18:27:08 +02:00 committed by GitHub
parent 0c952c1c8b
commit 5cc45bb419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 9 deletions

View File

@ -84,12 +84,11 @@ build_nvim() {
fi fi
# Invoke nvim to trigger *San early. # Invoke nvim to trigger *San early.
if ! (bin/nvim --version && bin/nvim -u NONE -e -c ':qall') ; then if ! (bin/nvim --version && bin/nvim -u NONE -e -cq | cat -A) ; then
asan_check "${LOG_DIR}" check_sanitizer "${LOG_DIR}"
exit 1 exit 1
fi fi
asan_check "${LOG_DIR}" check_sanitizer "${LOG_DIR}"
cd "${TRAVIS_BUILD_DIR}" cd "${TRAVIS_BUILD_DIR}"
} }

View File

@ -80,8 +80,8 @@ valgrind_check() {
check_logs "${1}" "valgrind-*" check_logs "${1}" "valgrind-*"
} }
asan_check() { check_sanitizer() {
if test "${CLANG_SANITIZER}" = "ASAN_UBSAN" ; then if test -n "${CLANG_SANITIZER}"; then
check_logs "${1}" "*san.*" check_logs "${1}" "*san.*"
fi fi
} }
@ -104,7 +104,7 @@ run_functionaltests() {(
fail 'functionaltests' F 'Functional tests failed' fail 'functionaltests' F 'Functional tests failed'
fi fi
submit_coverage functionaltest submit_coverage functionaltest
asan_check "${LOG_DIR}" check_sanitizer "${LOG_DIR}"
valgrind_check "${LOG_DIR}" valgrind_check "${LOG_DIR}"
check_core_dumps check_core_dumps
exit_suite exit_suite
@ -118,7 +118,7 @@ run_oldtests() {(
fail 'oldtests' F 'Legacy tests failed' fail 'oldtests' F 'Legacy tests failed'
fi fi
submit_coverage oldtest submit_coverage oldtest
asan_check "${LOG_DIR}" check_sanitizer "${LOG_DIR}"
valgrind_check "${LOG_DIR}" valgrind_check "${LOG_DIR}"
check_core_dumps check_core_dumps
exit_suite exit_suite

View File

@ -64,7 +64,7 @@ main() {(
fi fi
valgrind_check . valgrind_check .
if test -n "$LOG_DIR" ; then if test -n "$LOG_DIR" ; then
asan_check "$LOG_DIR" check_sanitizer "$LOG_DIR"
fi fi
check_core_dumps check_core_dumps
if test "$FAILED" = 1 ; then if test "$FAILED" = 1 ; then