mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
testsuite/test_ghostpad.py: Add while loop in teardown to wait for the pipeline state to hit NULL. Hopefully this wil...
Original commit message from CVS: * testsuite/test_ghostpad.py: Add while loop in teardown to wait for the pipeline state to hit NULL. Hopefully this will ensure the refcount has always hit 1.
This commit is contained in:
parent
e97416a785
commit
883b41a9ff
3 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-03-20 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* testsuite/test_ghostpad.py:
|
||||
Add while loop in teardown to wait for the pipeline state
|
||||
to hit NULL. Hopefully this will ensure the refcount has always hit 1.
|
||||
|
||||
2006-03-14 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* configure.ac:
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 9200457d08a57f0d7eaeb56915804fa8faf14418
|
||||
Subproject commit f1c7bfd24d0fcc4e5113ce3b96b1fac83a9ec560
|
|
@ -71,6 +71,10 @@ 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.assertEquals(sys.getrefcount(self.pipeline), 3)
|
||||
self.assertEquals(self.src.__gstrefcount__, 2)
|
||||
|
|
Loading…
Reference in a new issue