run_thread_sanitizer.sh 279 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/usr/bin/env bash

mkdir cmake-build-release-thread-sunitizer
cd cmake-build-release
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DTHREAD_SANITIZER=ON
make

# run the actual tests with sanitizer enabled, reporting the result
TSAN_OPTIONS="log_path=sanitizer.log exitcode=1" ./bin/tests