summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/macosx/queues
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2019-03-08 17:09:13 +0000
committerFrederic Riss <friss@apple.com>2019-03-08 17:09:13 +0000
commit7f3c16c0f3178efd2883ceac441aa162728f1726 (patch)
treefbf519b4610062c8b6bca9430bd0bd09aae38cf9 /lldb/packages/Python/lldbsuite/test/macosx/queues
parentb4cdfe8e7fe6d04a9e5e9cb574314367e3c3ba6d (diff)
downloadbcm5719-llvm-7f3c16c0f3178efd2883ceac441aa162728f1726.tar.gz
bcm5719-llvm-7f3c16c0f3178efd2883ceac441aa162728f1726.zip
Add more logging to TestQueues.py
The last round of logging taught us that when the test fails, lldb is indeed aware of the thread it's failing to associate to a given queue. Add more logging to try to figure out why the thread and the queue do not appear related to the Queue APIs. llvm-svn: 355706
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/macosx/queues')
-rw-r--r--lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py b/lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py
index 50b4743c6b8..cfb30c42d8f 100644
--- a/lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py
+++ b/lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py
@@ -65,8 +65,8 @@ class TestQueues(TestBase):
location = "\t".join([lldbutil.get_description(
x.GetFrameAtIndex(i)) for i in range(x.GetNumFrames())])
desc.append(
- "thread %d: %s at\n\t%s" %
- (id, reason_str, location))
+ "thread %d: %s (queue id: %s) at\n\t%s" %
+ (id, reason_str, x.GetQueueID(), location))
print('\n'.join(desc))
def check_number_of_threads_owned_by_queue(self, queue, number_threads):
@@ -327,6 +327,8 @@ class TestQueues(TestBase):
queue_performer_3 = lldb.SBQueue()
for idx in range(0, process.GetNumQueues()):
q = process.GetQueueAtIndex(idx)
+ if "LLDB_COMMAND_TRACE" in os.environ:
+ print("Queue with id %s has name %s" % (q.GetQueueID(), q.GetName()))
if q.GetName() == "com.apple.work_submittor_1":
queue_submittor_1 = q
if q.GetName() == "com.apple.work_performer_1":
OpenPOWER on IntegriCloud