Fix a typo in mac SIP workaround
authorPavel Labath <pavel@labath.sk>
Fri, 31 Aug 2018 06:01:02 +0000 (06:01 +0000)
committerPavel Labath <pavel@labath.sk>
Fri, 31 Aug 2018 06:01:02 +0000 (06:01 +0000)
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

lldb/lit/Suite/lldbtest.py

index 00ebcbe..edabaac 100644 (file)
@@ -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')