[Lldb-commits] [lldb] r203755 - Also check if the queues are serial or concurrent.

Jason Molenda jmolenda at apple.com
Wed Mar 12 22:43:19 PDT 2014


Author: jmolenda
Date: Thu Mar 13 00:43:18 2014
New Revision: 203755

URL: http://llvm.org/viewvc/llvm-project?rev=203755&view=rev
Log:
Also check if the queues are serial or concurrent.

Modified:
    lldb/trunk/test/macosx/queues/TestQueues.py

Modified: lldb/trunk/test/macosx/queues/TestQueues.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/macosx/queues/TestQueues.py?rev=203755&r1=203754&r2=203755&view=diff
==============================================================================
--- lldb/trunk/test/macosx/queues/TestQueues.py (original)
+++ lldb/trunk/test/macosx/queues/TestQueues.py Thu Mar 13 00:43:18 2014
@@ -103,8 +103,15 @@ class TestQueues(TestBase):
         self.assertTrue(q3.GetNumPendingItems() == 0, "queue 3 should have 0 pending items")
         self.assertTrue(q3.GetNumRunningItems() == 4, "queue 3 should have 4 running item")
 
+        self.assertTrue(q0.GetNumThreads() == 1, "queue 0 should have 1 thread executing")
         self.assertTrue(q3.GetNumThreads() == 4, "queue 3 should have 4 threads executing")
 
+        self.assertTrue(q0.GetKind() == lldb.eQueueKindSerial, "queue 0 is a serial queue")
+        self.assertTrue(q1.GetKind() == lldb.eQueueKindSerial, "queue 1 is a serial queue")
+        self.assertTrue(q2.GetKind() == lldb.eQueueKindSerial, "queue 2 is a serial queue")
+        self.assertTrue(q3.GetKind() == lldb.eQueueKindConcurrent, "queue 3 is a concurrent queue")
+        
+
         self.assertTrue(q1.GetThreadAtIndex(0).GetQueueID() == q1.GetQueueID(), "queue 1's thread should be owned by the same QueueID")
         self.assertTrue(q1.GetThreadAtIndex(0).GetQueueName() == q1.GetName(), "queue 1's thread should have the same queue name")
 
@@ -118,7 +125,6 @@ class TestQueues(TestBase):
         self.assertTrue(q2.GetPendingItemAtIndex(9998).GetAddress().GetSymbol().GetName() == "doing_the_work_2", "queue 2's pending item #0 should be doing_the_work_2")
         self.assertTrue(q2.GetPendingItemAtIndex(9999).IsValid() == False, "queue 2's pending item #9999 is invalid")
 
-
         
 if __name__ == '__main__':
     import atexit





More information about the lldb-commits mailing list