summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/lldbutil
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-12-13 19:18:59 +0000
committerGreg Clayton <gclayton@apple.com>2013-12-13 19:18:59 +0000
commitc694751a06f2b61586b24798f84f7d88452dd3b5 (patch)
treefe24cc09ee16ef13e2c5c607df20401b9091a01a /lldb/test/python_api/lldbutil
parent8e9026eee2263274d6d67de0065e759dab9583dc (diff)
downloadbcm5719-llvm-c694751a06f2b61586b24798f84f7d88452dd3b5.tar.gz
bcm5719-llvm-c694751a06f2b61586b24798f84f7d88452dd3b5.zip
Correctly set the working directory when launching processes for both local and remote targets.
llvm-svn: 197266
Diffstat (limited to 'lldb/test/python_api/lldbutil')
-rw-r--r--lldb/test/python_api/lldbutil/frame/TestFrameUtils.py2
-rw-r--r--lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py4
-rw-r--r--lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py2
-rw-r--r--lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py2
4 files changed, 5 insertions, 5 deletions
diff --git a/lldb/test/python_api/lldbutil/frame/TestFrameUtils.py b/lldb/test/python_api/lldbutil/frame/TestFrameUtils.py
index 2b7f341b3b4..22db4a4be36 100644
--- a/lldb/test/python_api/lldbutil/frame/TestFrameUtils.py
+++ b/lldb/test/python_api/lldbutil/frame/TestFrameUtils.py
@@ -34,7 +34,7 @@ class FrameUtilsTestCase(TestBase):
self.assertTrue(breakpoint, VALID_BREAKPOINT)
# Now launch the process, and do not stop at entry point.
- process = target.LaunchSimple(None, None, os.getcwd())
+ process = target.LaunchSimple (None, None, self.get_process_working_directory())
if not process:
self.fail("SBTarget.LaunchProcess() failed")
diff --git a/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py b/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py
index 8983252a414..4d32d6d997d 100644
--- a/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py
+++ b/lldb/test/python_api/lldbutil/iter/TestLLDBIterator.py
@@ -47,7 +47,7 @@ class LLDBIteratorTestCase(TestBase):
self.assertTrue(breakpoint, VALID_BREAKPOINT)
# Now launch the process, and do not stop at entry point.
- process = target.LaunchSimple(None, None, os.getcwd())
+ process = target.LaunchSimple (None, None, self.get_process_working_directory())
if not process:
self.fail("SBTarget.LaunchProcess() failed")
@@ -107,7 +107,7 @@ class LLDBIteratorTestCase(TestBase):
self.assertTrue(breakpoint, VALID_BREAKPOINT)
# Now launch the process, and do not stop at entry point.
- process = target.LaunchSimple(None, None, os.getcwd())
+ process = target.LaunchSimple (None, None, self.get_process_working_directory())
if not process:
self.fail("SBTarget.LaunchProcess() failed")
diff --git a/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py b/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
index 2f6de65e8c4..63016251240 100644
--- a/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
+++ b/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
@@ -36,7 +36,7 @@ class RegistersIteratorTestCase(TestBase):
self.assertTrue(breakpoint, VALID_BREAKPOINT)
# Now launch the process, and do not stop at entry point.
- process = target.LaunchSimple(None, None, os.getcwd())
+ process = target.LaunchSimple (None, None, self.get_process_working_directory())
if not process:
self.fail("SBTarget.LaunchProcess() failed")
diff --git a/lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py b/lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py
index d845c7903bc..c04e9c08845 100644
--- a/lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py
+++ b/lldb/test/python_api/lldbutil/process/TestPrintStackTraces.py
@@ -36,7 +36,7 @@ class ThreadsStackTracesTestCase(TestBase):
self.assertTrue(breakpoint, VALID_BREAKPOINT)
# Now launch the process, and do not stop at entry point.
- process = target.LaunchSimple(["abc", "xyz"], None, os.getcwd())
+ process = target.LaunchSimple (["abc", "xyz"], None, self.get_process_working_directory())
if not process:
self.fail("SBTarget.LaunchProcess() failed")
OpenPOWER on IntegriCloud