[Lldb-commits] [lldb] r355764 - Try to workaround the TestQueues.py flakyness
Frederic Riss via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 8 17:23:48 PST 2019
Author: friss
Date: Fri Mar 8 17:23:47 2019
New Revision: 355764
URL: http://llvm.org/viewvc/llvm-project?rev=355764&view=rev
Log:
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.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py?rev=355764&r1=355763&r2=355764&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/macosx/queues/TestQueues.py Fri Mar 8 17:23:47 2019
@@ -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)
More information about the lldb-commits
mailing list