summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-07-24 13:05:56 +0000
committerPavel Labath <pavel@labath.sk>2019-07-24 13:05:56 +0000
commit3a12e73f6729db2ad4e3c3c8624aff56263f06ba (patch)
treef8093a3e96c213dac7f02cff0d2685c63865e9b2 /lldb/packages/Python/lldbsuite/test
parent565c54320e009911479a0bdb58185a9d97c2c815 (diff)
downloadbcm5719-llvm-3a12e73f6729db2ad4e3c3c8624aff56263f06ba.tar.gz
bcm5719-llvm-3a12e73f6729db2ad4e3c3c8624aff56263f06ba.zip
Fix @skipIfSanitized decorator
To run the test the decorator function should return None, not False. Returning anything other than None skips the test. llvm-svn: 366903
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