From: Pavel Labath Date: Fri, 31 Aug 2018 06:01:02 +0000 (+0000) Subject: Fix a typo in mac SIP workaround X-Git-Tag: llvmorg-8.0.0-rc1~9694 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9e8c773de7fe53c357521eb6219b12e6a1d7b23;p=platform%2Fupstream%2Fllvm.git Fix a typo in mac SIP workaround presumably the or subexpression was meant to be evaluated first. The way it is now means that we apply the workaround for any python in `/usr`, which matches pretty much every unix system. llvm-svn: 341167 --- diff --git a/lldb/lit/Suite/lldbtest.py b/lldb/lit/Suite/lldbtest.py index 00ebcbe..edabaac 100644 --- a/lldb/lit/Suite/lldbtest.py +++ b/lldb/lit/Suite/lldbtest.py @@ -71,8 +71,8 @@ class LLDBTest(TestFormat): # libraries into system binaries, but this can be worked around by # copying the binary into a different location. if 'DYLD_INSERT_LIBRARIES' in test.config.environment and \ - sys.executable.startswith('/System/') or \ - sys.executable.startswith('/usr/'): + (sys.executable.startswith('/System/') or \ + sys.executable.startswith('/usr/')): builddir = getBuildDir(cmd) mkdir_p(builddir) copied_python = os.path.join(builddir, 'copied-system-python')