mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
testsuite/: Another attempt at making the tests deterministic on the buildbots
Original commit message from CVS: * testsuite/test_ghostpad.py: * testsuite/test_pad.py: Another attempt at making the tests deterministic on the buildbots
This commit is contained in:
parent
b327222179
commit
302cdc4a1d
3 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-03-21 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* testsuite/test_ghostpad.py:
|
||||
* testsuite/test_pad.py:
|
||||
Another attempt at making the tests deterministic on the buildbots
|
||||
|
||||
2006-03-20 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* configure.ac:
|
||||
|
|
|
@ -71,11 +71,7 @@ class PipeTest(TestCase):
|
|||
|
||||
def tearDown(self):
|
||||
gst.info("tearDown")
|
||||
while True:
|
||||
(ret, cur, pen) = self.pipeline.get_state()
|
||||
if ret == gst.STATE_CHANGE_SUCCESS and cur == gst.STATE_NULL:
|
||||
break
|
||||
self.assertEquals(self.pipeline.__gstrefcount__, 1)
|
||||
self.assertTrue (self.pipeline.__gstrefcount__ >= 1 and self.pipeline.__gstrefcount__ <= 2)
|
||||
self.assertEquals(sys.getrefcount(self.pipeline), 3)
|
||||
self.assertEquals(self.src.__gstrefcount__, 2)
|
||||
self.assertEquals(sys.getrefcount(self.src), 3)
|
||||
|
|
|
@ -264,7 +264,10 @@ class PadProbePipeTest(TestCase):
|
|||
self.assertEquals(sys.getrefcount(self.fakesink), 3)
|
||||
|
||||
def tearDown(self):
|
||||
self.assertEquals(self.pipeline.__gstrefcount__, 1)
|
||||
# Refcount must be either 1 or 2, to allow for a possibly still running
|
||||
# state-recalculation thread
|
||||
self.assertTrue (self.pipeline.__gstrefcount__ >= 1 and self.pipeline.__gstrefcount__ <= 2)
|
||||
|
||||
self.assertEquals(sys.getrefcount(self.pipeline), 3)
|
||||
self.assertEquals(self.fakesrc.__gstrefcount__, 2)
|
||||
self.assertEquals(sys.getrefcount(self.fakesrc), 3)
|
||||
|
|
Loading…
Reference in a new issue