From 86aa8e6363c7e00f211de62ccb3236556e9841df Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 6 Aug 2020 11:45:12 -0700 Subject: [lldb] Use target.GetLaunchInfo() instead of creating an empty one. Update tests that were creating an empty LaunchInfo instead of using the one coming from the target. This ensures target properties are honored. --- lldb/test/API/python_api/process/TestProcessAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/test/API/python_api/process/TestProcessAPI.py') diff --git a/lldb/test/API/python_api/process/TestProcessAPI.py b/lldb/test/API/python_api/process/TestProcessAPI.py index 4442284bf46e..7174ba1c64c4 100644 --- a/lldb/test/API/python_api/process/TestProcessAPI.py +++ b/lldb/test/API/python_api/process/TestProcessAPI.py @@ -339,7 +339,7 @@ class ProcessAPITestCase(TestBase): self.assertTrue(target, VALID_TARGET) # Launch the process and stop at the entry point. - launch_info = lldb.SBLaunchInfo(None) + launch_info = target.GetLaunchInfo() launch_info.SetWorkingDirectory(self.get_process_working_directory()) launch_flags = launch_info.GetLaunchFlags() launch_flags |= lldb.eLaunchFlagStopAtEntry -- cgit v1.2.3