summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py')
-rw-r--r--lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py b/lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
index 3ad7539018d5..fe78edd98f4d 100644
--- a/lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
+++ b/lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py
@@ -160,6 +160,8 @@ class PluginPythonOSPlugin(TestBase):
)
self.assertTrue(process, PROCESS_IS_VALID)
+ core_thread_zero = process.GetThreadAtIndex(0)
+
# Make sure there are no OS plug-in created thread when we first stop
# at our breakpoint in main
thread = process.GetThreadByID(0x111111111)
@@ -183,6 +185,10 @@ class PluginPythonOSPlugin(TestBase):
thread.IsValid(),
"Make sure there is a thread 0x111111111 after we load the python OS plug-in",
)
+ # This OS plugin does not set thread names / queue names, so it should
+ # inherit the core thread's name.
+ self.assertEqual(core_thread_zero.GetName(), thread.GetName())
+ self.assertEqual(core_thread_zero.GetQueueName(), thread.GetQueueName())
frame = thread.GetFrameAtIndex(0)
self.assertTrue(