Author: labath Date: Thu Aug 30 23:01:02 2018 New Revision: 341167 URL: http://llvm.org/viewvc/llvm-project?rev=341167&view=rev Log: 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. Modified: lldb/trunk/lit/Suite/lldbtest.py Modified: lldb/trunk/lit/Suite/lldbtest.py URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Suite/lldbtest.py?rev=341167&r1=341166&r2=341167&view=diff ============================================================================== --- lldb/trunk/lit/Suite/lldbtest.py (original) +++ lldb/trunk/lit/Suite/lldbtest.py Thu Aug 30 23:01:02 2018 @@ -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') _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits