Let @skipUnlessThreadSanitizer imply @skipIfAsan

Don't run tests that use thread sanitizer inside an address-sanitized
LLDB. The tests don't support that configuration. Incidentally they
were skipped on green dragon for a different reason, so this hasn't
come up there before.
This commit is contained in:
Adrian Prantl 2020-05-29 09:43:02 -07:00
parent 40c08367e4
commit 31a8e27e18
1 changed files with 3 additions and 0 deletions

View File

@ -719,6 +719,9 @@ def skipUnlessThreadSanitizer(func):
"""Decorate the item to skip test unless Clang -fsanitize=thread is supported."""
def is_compiler_clang_with_thread_sanitizer(self):
if is_running_under_asan():
return "Thread sanitizer tests are disabled when runing under ASAN"
compiler_path = self.getCompiler()
compiler = os.path.basename(compiler_path)
if not compiler.startswith("clang"):