From 0428ddd7fc85aa356ea8ae01836ebd46ffafe1dd Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 15 Mar 2018 15:21:54 +0000 Subject: 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. llvm-svn: 327633 --- .../lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py') diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py b/lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py index 8907ac63390..67501340c28 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py @@ -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") -- cgit v1.2.3