[Lldb-commits] [lldb] 31a8e27 - Let @skipUnlessThreadSanitizer imply @skipIfAsan

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Fri May 29 09:44:09 PDT 2020


Author: Adrian Prantl
Date: 2020-05-29T09:43:58-07:00
New Revision: 31a8e27e1805e039d699afa890702e26a93e0b40

URL: https://github.com/llvm/llvm-project/commit/31a8e27e1805e039d699afa890702e26a93e0b40
DIFF: https://github.com/llvm/llvm-project/commit/31a8e27e1805e039d699afa890702e26a93e0b40.diff

LOG: 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.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py
index b94b672e4499..d02c9468cdbc 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -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"):


        


More information about the lldb-commits mailing list