summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/decorators.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py
index c4343b3ffbc..5c69c18366a 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -827,6 +827,8 @@ def skipUnlessFeature(feature):
def skipIfSanitized(func):
"""Skip this test if the environment is set up to run LLDB itself under ASAN."""
def is_sanitized():
- return (('DYLD_INSERT_LIBRARIES' in os.environ) and
- 'libclang_rt.asan' in os.environ['DYLD_INSERT_LIBRARIES'])
+ if (('DYLD_INSERT_LIBRARIES' in os.environ) and
+ 'libclang_rt.asan' in os.environ['DYLD_INSERT_LIBRARIES']):
+ return "ASAN unsupported"
+ return None
return skipTestIfFn(is_sanitized)(func)
OpenPOWER on IntegriCloud