Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
las3_pub
/
predictable_parallel_patterns
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
aea0ed8b
authored
Mar 19, 2019
by
FritzFlorian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: thread sanitizer result not picked up correctly in CI.
parent
db8bd0b9
Pipeline
#1089
failed with stages
in 2 minutes 45 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
.gitlab-ci.yml
+1
-2
ci_scripts/run_thread_sanitizer.sh
+8
-1
No files found.
.gitlab-ci.yml
View file @
aea0ed8b
...
@@ -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
ci_scripts/run_thread_sanitizer.sh
View file @
aea0ed8b
#!/usr/bin/env bash
#!/usr/bin/env bash
mkdir cmake-build-release-thread-s
u
nitizer
mkdir cmake-build-release-thread-s
a
nitizer
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
STATUS_CODE
=
?
$
# rename the output log...
mv sanitizer.log.
*
sanitizer.log
touch sanitizer.log
exit
$STATUS_CODE
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment