[Lldb-commits] [lldb] c1a3329 - Let @skipUnlessUndefinedBehaviorSanitizer imply @skipIfAsan

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


Author: Adrian Prantl
Date: 2020-05-29T09:45:43-07:00
New Revision: c1a33299768f8404dd7b83a6cfef7c1155786c6a

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

LOG: Let @skipUnlessUndefinedBehaviorSanitizer imply @skipIfAsan

Don't run tests that use undefined behavior 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 d02c9468cdbc..0ef2f931542c 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -745,6 +745,9 @@ def skipUnlessUndefinedBehaviorSanitizer(func):
     """Decorate the item to skip test unless -fsanitize=undefined is supported."""
 
     def is_compiler_clang_with_ubsan(self):
+        if is_running_under_asan():
+            return "Undefined behavior sanitizer tests are disabled when runing under ASAN"
+
         # Write out a temp file which exhibits UB.
         inputf = tempfile.NamedTemporaryFile(suffix='.c', mode='w')
         inputf.write('int main() { int x = 0; return x / x; }\n')


        


More information about the lldb-commits mailing list