summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-03-15 15:21:54 +0000
committerPavel Labath <labath@google.com>2018-03-15 15:21:54 +0000
commit0428ddd7fc85aa356ea8ae01836ebd46ffafe1dd (patch)
tree6f44a5a6e10fdde0ad2944400502d7a28a8aa3f3 /lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py
parentd30df5769eb1c8df9a4df3068096e77a76f0bac5 (diff)
downloadbcm5719-llvm-0428ddd7fc85aa356ea8ae01836ebd46ffafe1dd.tar.gz
bcm5719-llvm-0428ddd7fc85aa356ea8ae01836ebd46ffafe1dd.zip
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py2
1 files changed, 1 insertions, 1 deletions
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")
OpenPOWER on IntegriCloud