diff options
author | Greg Clayton <gclayton@apple.com> | 2013-12-13 19:18:59 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-12-13 19:18:59 +0000 |
commit | c694751a06f2b61586b24798f84f7d88452dd3b5 (patch) | |
tree | fe24cc09ee16ef13e2c5c607df20401b9091a01a /lldb/test/lang/cpp | |
parent | 8e9026eee2263274d6d67de0065e759dab9583dc (diff) | |
download | bcm5719-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/lang/cpp')
9 files changed, 9 insertions, 9 deletions
diff --git a/lldb/test/lang/cpp/char1632_t/TestChar1632T.py b/lldb/test/lang/cpp/char1632_t/TestChar1632T.py index 445c1dd9c9e..cf4d98f6fa2 100644 --- a/lldb/test/lang/cpp/char1632_t/TestChar1632T.py +++ b/lldb/test/lang/cpp/char1632_t/TestChar1632T.py @@ -46,7 +46,7 @@ class Char1632TestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line) # 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.Launch() failed") diff --git a/lldb/test/lang/cpp/class_static/TestStaticVariables.py b/lldb/test/lang/cpp/class_static/TestStaticVariables.py index 6ecefd379e9..16a280504e6 100644 --- a/lldb/test/lang/cpp/class_static/TestStaticVariables.py +++ b/lldb/test/lang/cpp/class_static/TestStaticVariables.py @@ -88,7 +88,7 @@ class StaticVariableTestCase(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()) self.assertTrue(process, PROCESS_IS_VALID) # The stop reason of the thread should be breakpoint. diff --git a/lldb/test/lang/cpp/class_types/TestClassTypes.py b/lldb/test/lang/cpp/class_types/TestClassTypes.py index b41ca399af2..e4670931775 100644 --- a/lldb/test/lang/cpp/class_types/TestClassTypes.py +++ b/lldb/test/lang/cpp/class_types/TestClassTypes.py @@ -123,7 +123,7 @@ class ClassTypesTestCase(TestBase): str(self.line)]) # 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.Launch() failed") diff --git a/lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py b/lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py index b2afaa57a13..df7c46e4545 100644 --- a/lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py +++ b/lldb/test/lang/cpp/dynamic-value/TestCppValueCast.py @@ -76,7 +76,7 @@ class CppValueCastTestCase(TestBase): self.assertTrue(breakpoint, VALID_BREAKPOINT) # Now 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()) self.assertTrue(process.GetState() == lldb.eStateStopped, PROCESS_STOPPED) diff --git a/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py b/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py index b0698d80070..dfd6127b166 100644 --- a/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py +++ b/lldb/test/lang/cpp/dynamic-value/TestDynamicValue.py @@ -140,7 +140,7 @@ class DynamicValueTestCase(TestBase): VALID_BREAKPOINT) # Now 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()) self.assertTrue(process.GetState() == lldb.eStateStopped, PROCESS_STOPPED) diff --git a/lldb/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py b/lldb/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py index 122ff94f5b0..bb81d6d0d35 100644 --- a/lldb/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py +++ b/lldb/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py @@ -44,7 +44,7 @@ class CPPBreakpointTestCase(TestBase): self.assertTrue (exception_bkpt, "Made an exception breakpoint") # Now run, and make sure we hit our breakpoint: - process = target.LaunchSimple (None, None, os.getcwd()) + process = target.LaunchSimple (None, None, self.get_process_working_directory()) self.assertTrue (process, "Got a valid process") stopped_threads = [] diff --git a/lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py b/lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py index faa04881945..9cdd9ab4ad8 100644 --- a/lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py +++ b/lldb/test/lang/cpp/rdar12991846/TestRdar12991846.py @@ -63,7 +63,7 @@ class Rdar12991846TestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line) # 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.Launch() failed") diff --git a/lldb/test/lang/cpp/stl/TestSTL.py b/lldb/test/lang/cpp/stl/TestSTL.py index ffb02e2e654..309d169eca1 100644 --- a/lldb/test/lang/cpp/stl/TestSTL.py +++ b/lldb/test/lang/cpp/stl/TestSTL.py @@ -106,7 +106,7 @@ class STLTestCase(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()) self.assertTrue(process, PROCESS_IS_VALID) # Get Frame #0. diff --git a/lldb/test/lang/cpp/wchar_t/TestCxxWCharT.py b/lldb/test/lang/cpp/wchar_t/TestCxxWCharT.py index 3d286d89175..e6dc376093c 100644 --- a/lldb/test/lang/cpp/wchar_t/TestCxxWCharT.py +++ b/lldb/test/lang/cpp/wchar_t/TestCxxWCharT.py @@ -45,7 +45,7 @@ class CxxWCharTTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line) # 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.Launch() failed") |