[Lldb-commits] [lldb] r327633 - Fix TestProcessLaunch breakage on MacOS
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 15 08:21:54 PDT 2018
Date: Thu Mar 15 08:21:54 2018
New Revision: 327633
Fix TestProcessLaunch breakage on MacOS
This test started failing after r327625. The cause seems difference in the
treatment of relative --stdin paths between MacOS (debugserver?) and linux
(lldb-server?). Linux treats this as relative to the debuggers PWD, while MacOS
as relative to (I think) the future PWD of the launched process.
This fixes the issue by using absolute paths, which should work everywhere, but
we should probably unify this path handling as well. I'll ask around about what
is the expected behavior here.
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py Thu Mar 15 08:21:54 2018
@@ -38,7 +38,7 @@ class ProcessLaunchTestCase(TestBase):
self.expect("file " + exe,
patterns=["Current executable set to .*a.out"])
- in_file = "input-file.txt"
+ in_file = os.path.join(self.getSourceDir(), "input-file.txt")
out_file = lldbutil.append_to_process_working_directory(self, "output-test.out")
err_file = lldbutil.append_to_process_working_directory(self, "output-test.err")
More information about the lldb-commits