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: ...@@ -27,4 +27,4 @@ run_thread_sanitizer:
./ci_scripts/run_thread_sanitizer.sh ./ci_scripts/run_thread_sanitizer.sh
artifacts: artifacts:
paths: paths:
- cmake-build-release/sanitizer.log.* - "./cmake-build-release-thread-sanitizer/sanitizer.log.*"
\ No newline at end of file
#!/usr/bin/env bash #!/usr/bin/env bash
mkdir cmake-build-release-thread-sunitizer mkdir cmake-build-release-thread-sanitizer
cd cmake-build-release cd cmake-build-release
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DTHREAD_SANITIZER=ON cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DTHREAD_SANITIZER=ON
make make
# run the actual tests with sanitizer enabled, reporting the result # run the actual tests with sanitizer enabled, reporting the result
TSAN_OPTIONS="log_path=sanitizer.log exitcode=1" ./bin/tests TSAN_OPTIONS="log_path=sanitizer.log exitcode=1" ./bin/tests
\ No newline at end of file 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