diff options
| author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2021-05-30 17:28:09 +0700 |
|---|---|---|
| committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2021-06-02 11:35:11 +0700 |
| commit | 251a5d9d5239c0402e0ab68718aa194c2b4f04bb (patch) | |
| tree | 8691b5021ec2a9889e6b6cbe271cb49753fc39d1 /lldb/test/API/python_api/process/TestProcessAPI.py | |
| parent | 6a2807bc81771d3fed397378507ecab40f8bff27 (diff) | |
[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
Diffstat (limited to 'lldb/test/API/python_api/process/TestProcessAPI.py')
| -rw-r--r-- | lldb/test/API/python_api/process/TestProcessAPI.py | 2 |
1 files changed, 2 insertions, 0 deletions
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. |
