[OpenMP][Tool] Make tests for archer dependent on TSan
authorJoachim Protze <protze@itc.rwth-aachen.de>
Tue, 14 Jan 2020 07:44:06 +0000 (21:44 -1000)
committerJoachim Protze <protze@itc.rwth-aachen.de>
Tue, 14 Jan 2020 07:47:58 +0000 (21:47 -1000)
commit84637408f2e63821014974dac08dee50bb197c1b
tree634e058a748951b15bde4dc38eb5d215f1d2fbbf
parent7cd429f27d4886bb841ed0e3702e970f5f6cccd1
[OpenMP][Tool] Make tests for archer dependent on TSan

If the openmp project is built standalone, the test compiler is feature tested for an available -fsanitize=thread flag.
If the openmp project is built as part of llvm, the target tsan is needed to test archer.

An additional line (requires tsan) was introduced to the tests, this patch updates the line numbers for the race.

Follow-up for 77ad98c

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D71914
13 files changed:
openmp/cmake/DetectTestCompiler/CMakeLists.txt
openmp/cmake/OpenMPTesting.cmake
openmp/tools/archer/tests/CMakeLists.txt
openmp/tools/archer/tests/lit.cfg
openmp/tools/archer/tests/lit.site.cfg.in
openmp/tools/archer/tests/races/critical-unrelated.c
openmp/tools/archer/tests/races/lock-nested-unrelated.c
openmp/tools/archer/tests/races/lock-unrelated.c
openmp/tools/archer/tests/races/parallel-simple.c
openmp/tools/archer/tests/races/task-dependency.c
openmp/tools/archer/tests/races/task-taskgroup-unrelated.c
openmp/tools/archer/tests/races/task-taskwait-nested.c
openmp/tools/archer/tests/races/task-two.c