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:
Jan Schmidt 2006-03-20 19:08:34 +00:00
parent e97416a785
commit 883b41a9ff
3 changed files with 11 additions and 1 deletions

View file

@ -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

@ -1 +1 @@
Subproject commit 9200457d08a57f0d7eaeb56915804fa8faf14418
Subproject commit f1c7bfd24d0fcc4e5113ce3b96b1fac83a9ec560

View file

@ -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)