llvm-svn: 349861
This commit is contained in:
Adrian Prantl 2018-12-20 23:50:32 +00:00
parent 23b28703f9
commit 33c46ca675
1 changed files with 2 additions and 2 deletions

View File

@ -810,6 +810,6 @@ 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.env) and
'libclang_rt.asan' in os.env['DYLD_INSERT_LIBRARIES'])
return (('DYLD_INSERT_LIBRARIES' in os.environ) and
'libclang_rt.asan' in os.environ['DYLD_INSERT_LIBRARIES'])
return skipTestIfFn(is_sanitized)(func)