diff --git a/compiler-rt/test/sanitizer_common/lit.common.cfg b/compiler-rt/test/sanitizer_common/lit.common.cfg index 693b348b05e60..85764ebaf29c6 100644 --- a/compiler-rt/test/sanitizer_common/lit.common.cfg +++ b/compiler-rt/test/sanitizer_common/lit.common.cfg @@ -35,6 +35,7 @@ if config.host_os == 'Darwin': # On Darwin, we default to `abort_on_error=1`, which would make tests run # much slower. Let's override this and run lit tests with 'abort_on_error=0'. default_tool_options += ['abort_on_error=0'] + default_tool_options += ['ignore_interceptors_accesses=0'] elif config.android: # The same as on Darwin, we default to "abort_on_error=1" which slows down # testing. Also, all existing tests are using "not" instead of "not --crash" diff --git a/compiler-rt/test/tsan/Unit/lit.site.cfg.in b/compiler-rt/test/tsan/Unit/lit.site.cfg.in index 40cf096478f5c..2297489453974 100644 --- a/compiler-rt/test/tsan/Unit/lit.site.cfg.in +++ b/compiler-rt/test/tsan/Unit/lit.site.cfg.in @@ -21,3 +21,4 @@ if config.host_os == 'Darwin': config.environment['TSAN_OPTIONS'] += ':ignore_noninstrumented_modules=0' else: config.environment['TSAN_OPTIONS'] = 'ignore_noninstrumented_modules=0' + config.environment['TSAN_OPTIONS'] += ':ignore_interceptors_accesses=0' diff --git a/compiler-rt/test/tsan/lit.cfg b/compiler-rt/test/tsan/lit.cfg index 50c8a5eea02db..bd96fd04036f5 100644 --- a/compiler-rt/test/tsan/lit.cfg +++ b/compiler-rt/test/tsan/lit.cfg @@ -28,6 +28,7 @@ if config.host_os == 'Darwin': # suppresses some races the tests are supposed to find. Let's run without this # setting, but turn it back on for Darwin tests (see Darwin/lit.local.cfg). default_tsan_opts += ':ignore_noninstrumented_modules=0' + default_tsan_opts += ':ignore_interceptors_accesses=0' # Platform-specific default TSAN_OPTIONS for lit tests. if default_tsan_opts: