diff options
author | Frederic Riss <friss@apple.com> | 2019-03-09 01:23:47 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2019-03-09 01:23:47 +0000 |
commit | 65e062655ed8591761f3d7b7ce31bd8f9dd553ef (patch) | |
tree | 0d5b327f46b51cedb33ad03515a7f3a5df1b3ed2 /lldb/packages/Python/lldbsuite/test | |
parent | 7ffcd984c4de54dea96049b9cb6a74c9e9b84c1e (diff) | |
download | bcm5719-llvm-65e062655ed8591761f3d7b7ce31bd8f9dd553ef.tar.gz bcm5719-llvm-65e062655ed8591761f3d7b7ce31bd8f9dd553ef.zip |
Try to workaround the TestQueues.py flakyness
This is not a fix, but if I understand enough of the issue, it should
bail out early of the test when in a situation that would result in
a failure down the road.
llvm-svn: 355764
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py b/lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py index cfb30c42d8f..3c819186c75 100644 --- a/lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py +++ b/lldb/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py @@ -357,6 +357,11 @@ 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) |