Commit aea0ed8b by FritzFlorian

Fix: thread sanitizer result not picked up correctly in CI.

parent db8bd0b9
Pipeline #1089 failed with stages
in 2 minutes 45 seconds
......@@ -27,4 +27,4 @@ run_thread_sanitizer:
./ci_scripts/run_thread_sanitizer.sh
artifacts:
paths:
- cmake-build-release/sanitizer.log.*
\ No newline at end of file
- "./cmake-build-release-thread-sanitizer/sanitizer.log.*"
#!/usr/bin/env bash
mkdir cmake-build-release-thread-sunitizer
mkdir cmake-build-release-thread-sanitizer
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
\ No newline at end of file
TSAN_OPTIONS="log_path=sanitizer.log exitcode=1" ./bin/tests
STATUS_CODE=?$
# rename the output log...
mv sanitizer.log.* sanitizer.log
touch sanitizer.log
exit $STATUS_CODE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment