Correctly set the working directory when launching processes for both local and remote targets.
llvm-svn: 197266
diff --git a/lldb/test/python_api/process/TestProcessAPI.py b/lldb/test/python_api/process/TestProcessAPI.py
index 245c735..6ce4d0b 100644
--- a/lldb/test/python_api/process/TestProcessAPI.py
+++ b/lldb/test/python_api/process/TestProcessAPI.py
@@ -86,7 +86,7 @@
self.assertTrue(breakpoint, VALID_BREAKPOINT)
# Launch the process, and do not stop at the entry point.
- process = target.LaunchSimple(None, None, os.getcwd())
+ process = target.LaunchSimple (None, None, self.get_process_working_directory())
thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
self.assertTrue(thread.IsValid(), "There should be a thread stopped due to breakpoint")
@@ -167,7 +167,7 @@
self.assertTrue(breakpoint, VALID_BREAKPOINT)
# Launch the process, and do not stop at the entry point.
- process = target.LaunchSimple(None, None, os.getcwd())
+ process = target.LaunchSimple (None, None, self.get_process_working_directory())
thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
self.assertTrue(thread.IsValid(), "There should be a thread stopped due to breakpoint")
@@ -217,7 +217,7 @@
self.assertTrue(breakpoint, VALID_BREAKPOINT)
# Launch the process, and do not stop at the entry point.
- process = target.LaunchSimple(None, None, os.getcwd())
+ process = target.LaunchSimple (None, None, self.get_process_working_directory())
thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
self.assertTrue(thread.IsValid(), "There should be a thread stopped due to breakpoint")
@@ -302,7 +302,7 @@
self.assertTrue(target, VALID_TARGET)
# Launch the process, and do not stop at the entry point.
- process = target.LaunchSimple(None, None, os.getcwd())
+ process = target.LaunchSimple (None, None, self.get_process_working_directory())
if self.TraceOn():
print "process state:", state_type_to_str(process.GetState())
@@ -324,7 +324,7 @@
self.assertTrue(breakpoint, VALID_BREAKPOINT)
# Launch the process, and do not stop at the entry point.
- process = target.LaunchSimple(None, None, os.getcwd())
+ process = target.LaunchSimple (None, None, self.get_process_working_directory())
error = lldb.SBError();
num = process.GetNumSupportedHardwareWatchpoints(error)
diff --git a/lldb/test/python_api/process/io/TestProcessIO.py b/lldb/test/python_api/process/io/TestProcessIO.py
index 7352a8e..9a2d2f8 100644
--- a/lldb/test/python_api/process/io/TestProcessIO.py
+++ b/lldb/test/python_api/process/io/TestProcessIO.py
@@ -38,7 +38,7 @@
# Perform synchronous interaction with the debugger.
self.setAsync(True)
- process = target.LaunchSimple(None, None, os.getcwd())
+ process = target.LaunchSimple (None, None, self.get_process_working_directory())
if self.TraceOn():
print "process launched."