summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
Diffstat (limited to 'lldb')
-rw-r--r--lldb/lit/Suite/lldbtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/lit/Suite/lldbtest.py b/lldb/lit/Suite/lldbtest.py
index c17214c997a..61e9ceb199e 100644
--- a/lldb/lit/Suite/lldbtest.py
+++ b/lldb/lit/Suite/lldbtest.py
@@ -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)
OpenPOWER on IntegriCloud