summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2019-03-09 01:34:44 +0000
committerFrederic Riss <friss@apple.com>2019-03-09 01:34:44 +0000
commit08ae3e0f0b5daf98c0dbb25d92691dbc37d25b96 (patch)
tree9e8a23c7ec392d92641fe60a49ca3434f8f304c1 /lldb/packages/Python/lldbsuite
parentaac819b84442a57e573e2d87d8903e820e0bee1a (diff)
downloadbcm5719-llvm-08ae3e0f0b5daf98c0dbb25d92691dbc37d25b96.tar.gz
bcm5719-llvm-08ae3e0f0b5daf98c0dbb25d92691dbc37d25b96.zip
Actually implement the TestQueues.py workaround
The code commited in r355764 didn't do what I want as I typed GetThreadID instead of GetQueueID. This commit contains a (hopefully) better version of the workaround. llvm-svn: 355766
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py b/lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py
index 3c819186c75..74d8d999ce7 100644
--- a/lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py
+++ b/lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py
@@ -337,6 +337,10 @@ class TestQueues(TestBase):
queue_performer_2 = q
if q.GetName() == "com.apple.work_performer_3":
queue_performer_3 = q
+ if q.GetName() == "com.apple.main-thread":
+ if q.GetNumThreads() == 0:
+ print("Cannot get thread <=> queue associations")
+ return
self.assertTrue(
queue_submittor_1.IsValid() and queue_performer_1.IsValid() and queue_performer_2.IsValid() and queue_performer_3.IsValid(),
@@ -357,11 +361,6 @@ class TestQueues(TestBase):
queue_performer_2, 1, 9999)
self.check_running_and_pending_items_on_queue(queue_performer_3, 4, 0)
- for th in process.threads:
- if th.GetThreadID() == lldb.LLDB_INVALID_QUEUE_ID:
- print("Cannot get thread <=> queue associations")
- return
-
self.check_number_of_threads_owned_by_queue(queue_submittor_1, 1)
self.check_number_of_threads_owned_by_queue(queue_performer_1, 1)
self.check_number_of_threads_owned_by_queue(queue_performer_2, 1)
OpenPOWER on IntegriCloud