From 251a5d9d5239c0402e0ab68718aa194c2b4f04bb Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sun, 30 May 2021 17:28:09 +0700 Subject: [lldb/API] Expose triple for SBProcessInfo. This is present when doing a `platform process list` and is tracked by the underlying code. To do something like the process list via the SB API in the future, this must be exposed. Differential Revision: https://reviews.llvm.org/D103375 --- lldb/test/API/python_api/process/TestProcessAPI.py | 2 ++ 1 file changed, 2 insertions(+) (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 942e2616c409..b7efc7e4affa 100644 --- a/lldb/test/API/python_api/process/TestProcessAPI.py +++ b/lldb/test/API/python_api/process/TestProcessAPI.py @@ -356,6 +356,8 @@ class ProcessAPITestCase(TestBase): self.assertNotEqual( process_info.GetProcessID(), lldb.LLDB_INVALID_PROCESS_ID, "Process ID is valid") + triple = process_info.GetTriple() + self.assertIsNotNone(triple, "Process has a triple") # Additional process info varies by platform, so just check that # whatever info was retrieved is consistent and nothing blows up. -- cgit v1.2.3