summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/process/TestProcessAPI.py
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-08-06 11:45:12 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-08-06 11:51:26 -0700
commit86aa8e6363c7e00f211de62ccb3236556e9841df (patch)
tree7f07f451beba12a6b99140e1a6d3fb5595b66f8e /lldb/test/API/python_api/process/TestProcessAPI.py
parent9f24148b212698aca220ac923d215c2073e443ce (diff)
[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.
Diffstat (limited to 'lldb/test/API/python_api/process/TestProcessAPI.py')
-rw-r--r--lldb/test/API/python_api/process/TestProcessAPI.py2
1 files changed, 1 insertions, 1 deletions
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