File tree 3 files changed +8
-0
lines changed 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ if config.host_os == 'Darwin':
37
37
default_tool_options += ['abort_on_error=0' ]
38
38
if config .tool_name == "tsan" :
39
39
default_tool_options += ['ignore_interceptors_accesses=0' ]
40
+ elif config .host_os == 'Linux' and config .tool_name == 'tsan' :
41
+ # For Swift, the above also applies on Linux.
42
+ default_tool_options += ['ignore_interceptors_accesses=0' ]
40
43
elif config .android :
41
44
# The same as on Darwin, we default to "abort_on_error=1" which slows down
42
45
# testing. Also, all existing tests are using "not" instead of "not --crash"
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ config.test_source_root = config.test_exec_root
15
15
if config.host_os == 'Darwin':
16
16
config.parallelism_group = config.darwin_sanitizer_parallelism_group_func
17
17
18
+ # For Swift, the following also applies on Linux.
19
+ if config.host_os == 'Darwin' or config.host_os == 'Linux':
18
20
# On Darwin, we default to ignore_noninstrumented_modules=1, which also
19
21
# suppresses some races the tests are supposed to find. See tsan/lit.cfg.
20
22
if 'TSAN_OPTIONS' in config.environment:
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ if config.host_os == 'Darwin':
24
24
# On Darwin, we default to `abort_on_error=1`, which would make tests run
25
25
# much slower. Let's override this and run lit tests with 'abort_on_error=0'.
26
26
default_tsan_opts += ':abort_on_error=0'
27
+
28
+ # For Swift, the following also applies on Linux.
29
+ if config .host_os == 'Darwin' or config .host_os == 'Linux' :
27
30
# On Darwin, we default to ignore_noninstrumented_modules=1, which also
28
31
# suppresses some races the tests are supposed to find. Let's run without this
29
32
# setting, but turn it back on for Darwin tests (see Darwin/lit.local.cfg).
You can’t perform that action at this time.
0 commit comments