File tree 2 files changed +3
-2
lines changed
compiler-rt/test/sanitizer_common
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 4
4
// RUN: %clangxx -DUSING_%tool_name %s -o %t
5
5
6
6
// Intentionally don't inherit the default options.
7
- // RUN: env %tool_options='' not --crash %run %t 2>&1
7
+ // RUN: env %tool_options='' TSAN_OPTIONS=ignore_interceptors_accesses=0 not --crash %run %t 2>&1
8
8
9
9
// When we use lit's default options, we shouldn't crash.
10
10
// RUN: not %run %t 2>&1
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ if config.host_os == 'Darwin':
35
35
# On Darwin, we default to `abort_on_error=1`, which would make tests run
36
36
# much slower. Let's override this and run lit tests with 'abort_on_error=0'.
37
37
default_tool_options += ['abort_on_error=0' ]
38
- default_tool_options += ['ignore_interceptors_accesses=0' ]
38
+ if config .tool_name == "tsan" :
39
+ default_tool_options += ['ignore_interceptors_accesses=0' ]
39
40
elif config .android :
40
41
# The same as on Darwin, we default to "abort_on_error=1" which slows down
41
42
# testing. Also, all existing tests are using "not" instead of "not --crash"
You can’t perform that action at this time.
0 commit comments