Make the tsan build fail instead of swallowing its errors.

We'll make it non-required, but we want to know about these failures so
we are incentivised to fix them.
This commit is contained in:
iphydf 2018-08-26 19:08:34 +00:00
parent 01e2cc55cb
commit 5352f48301
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
2 changed files with 7 additions and 2 deletions

View File

@ -24,5 +24,9 @@ cd _build
ninja install -j$(nproc)
export ASAN_OPTIONS="detect_invalid_pointer_pairs=1"
export ASAN_OPTIONS="$ASAN_OPTIONS,detect_stack_use_after_return=1"
export ASAN_OPTIONS="$ASAN_OPTIONS,strict_init_order=1"
export ASAN_OPTIONS="$ASAN_OPTIONS,strict_string_checks=1"
ctest -j50 --output-on-failure ||
ctest -j50 --output-on-failure --rerun-failed

View File

@ -24,6 +24,7 @@ cd _build
ninja install -j$(nproc)
export TSAN_OPTIONS="halt_on_error=1"
export TSAN_OPTIONS="$TSAN_OPTIONS,second_deadlock_stack=1"
ctest -j50 --output-on-failure ||
ctest -j50 --output-on-failure --rerun-failed ||
true # TODO(iphydf): remove this line once the data races are fixed.
ctest -j50 --output-on-failure --rerun-failed