File tree Expand file tree Collapse file tree 6 files changed +17
-2
lines changed
Expand file tree Collapse file tree 6 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ build:clang-tsan --config=clang-xsan
5555build:clang-tsan --copt -DTHREAD_SANITIZER=1
5656build:clang-tsan --copt -fsanitize=thread
5757build:clang-tsan --linkopt -fsanitize=thread
58+ build:clang-tsan --test_env=TSAN_OPTIONS=suppressions=bazel/tsan_suppressions.txt
5859
5960# Use Clang-Tidy tool.
6061build:clang-tidy --config=clang
Original file line number Diff line number Diff line change @@ -68,3 +68,5 @@ selects.config_setting_group(
6868 ":linux_s390x" ,
6969 ],
7070)
71+
72+ exports_files (["tsan_suppressions.txt" ])
Original file line number Diff line number Diff line change 1+ load ("@rules_cc//cc:defs.bzl" , _cc_test = "cc_test" )
2+ load ("@rules_fuzzing//fuzzing:cc_defs.bzl" , _cc_fuzz_test = "cc_fuzz_test" )
3+
4+ def cc_test (data = [], ** kwargs ):
5+ _cc_test (data = data + ['//bazel:tsan_suppressions.txt' ], ** kwargs )
6+
7+ def cc_fuzz_test (data = [], ** kwargs ):
8+ _cc_fuzz_test (data = data + ['//bazel:tsan_suppressions.txt' ], ** kwargs )
9+
Original file line number Diff line number Diff line change 1+ # False positive in V8 worker shutdown
2+ race:v8::platform::DefaultJobHandle::Join
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515load ("@proxy_wasm_cpp_host//bazel:select.bzl" , "proxy_wasm_select_engine_null" )
16- load ("@rules_cc//cc:defs.bzl" , "cc_library" , "cc_test" )
16+ load ("@rules_cc//cc:defs.bzl" , "cc_library" )
17+ load ("//bazel:cc_defs.bzl" , "cc_test" )
1718
1819licenses (["notice" ]) # Apache 2
1920
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- load ("@rules_fuzzing//fuzzing :cc_defs.bzl" , "cc_fuzz_test" )
15+ load ("//bazel :cc_defs.bzl" , "cc_fuzz_test" )
1616
1717licenses (["notice" ]) # Apache 2
1818
You can’t perform that action at this time.
0 commit comments