Let @skipUnlessThreadSanitizer imply @skipIfAsan
authorAdrian Prantl <aprantl@apple.com>
Fri, 29 May 2020 16:43:02 +0000 (09:43 -0700)
committerAdrian Prantl <aprantl@apple.com>
Fri, 29 May 2020 16:43:58 +0000 (09:43 -0700)
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.

lldb/packages/Python/lldbsuite/test/decorators.py

index b94b672..d02c946 100644 (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"):