File tree Expand file tree Collapse file tree 6 files changed +31
-2
lines changed Expand file tree Collapse file tree 6 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ build:clang-tsan --config=clang-xsan
55
55
build:clang-tsan --copt -DTHREAD_SANITIZER=1
56
56
build:clang-tsan --copt -fsanitize=thread
57
57
build:clang-tsan --linkopt -fsanitize=thread
58
+ build:clang-tsan --test_env=TSAN_OPTIONS=suppressions=bazel/tsan_suppressions.txt
58
59
59
60
# Use Clang-Tidy tool.
60
61
build:clang-tidy --config=clang
Original file line number Diff line number Diff line change @@ -68,3 +68,5 @@ selects.config_setting_group(
68
68
":linux_s390x" ,
69
69
],
70
70
)
71
+
72
+ exports_files (["tsan_suppressions.txt" ])
Original file line number Diff line number Diff line change
1
+ # Copyright 2025 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ load ("@rules_cc//cc:defs.bzl" , _cc_test = "cc_test" )
16
+ load ("@rules_fuzzing//fuzzing:cc_defs.bzl" , _cc_fuzz_test = "cc_fuzz_test" )
17
+
18
+ def cc_test (data = [], ** kwargs ):
19
+ _cc_test (data = data + ["//bazel:tsan_suppressions.txt" ], ** kwargs )
20
+
21
+ def cc_fuzz_test (data = [], ** kwargs ):
22
+ _cc_fuzz_test (data = data + ["//bazel:tsan_suppressions.txt" ], ** kwargs )
Original file line number Diff line number Diff line change
1
+ # False positive in V8 worker shutdown
2
+ race:v8::platform::DefaultJobHandle::Join
3
+ race:v8::platform::DefaultJobHandle::Cancel
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
load ("@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" )
17
18
18
19
licenses (["notice" ]) # Apache 2
19
20
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- load ("@rules_fuzzing//fuzzing :cc_defs.bzl" , "cc_fuzz_test" )
15
+ load ("//bazel :cc_defs.bzl" , "cc_fuzz_test" )
16
16
17
17
licenses (["notice" ]) # Apache 2
18
18
You can’t perform that action at this time.
0 commit comments