forked from OSchip/llvm-project
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
This commit is contained in:
parent
565c54320e
commit
3a12e73f67
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue