Fix check for dictionary entry

llvm-svn: 340557
This commit is contained in:
Adrian Prantl 2018-08-23 17:51:14 +00:00
parent dfa176e813
commit 6c7f5884d5
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class LLDBTest(TestFormat):
# The macOS system integrity protection (SIP) doesn't allow injecting
# libraries into system binaries, but this can be worked around by
# copying the binary into a different location.
if test.config.environment['DYLD_INSERT_LIBRARIES'] and \
if 'DYLD_INSERT_LIBRARIES' in test.config.environment and \
sys.executable.startswith('/System/'):
builddir = getBuildDir(cmd)
assert(builddir)