From 42e6f9e77cf2473f832990344c81e2a1b3b996f1 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Sat, 15 Dec 2007 14:42:25 +0000 Subject: [PATCH] tests/check/gst/gstbin.c: Adjust the test to the refcount change two days ago. Original commit message from CVS: * tests/check/gst/gstbin.c: Adjust the test to the refcount change two days ago. --- ChangeLog | 5 +++++ tests/check/gst/gstbin.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7a4e4ee..3385785 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-15 Stefan Kost + + * tests/check/gst/gstbin.c: + Adjust the test to the refcount change two days ago. + 2007-12-14 David Schleef * docs/faq/getting.xml: Fix typo. diff --git a/tests/check/gst/gstbin.c b/tests/check/gst/gstbin.c index 46b9bb6..215cd83 100644 --- a/tests/check/gst/gstbin.c +++ b/tests/check/gst/gstbin.c @@ -299,10 +299,10 @@ GST_START_TEST (test_message_state_changed_children) * base_src is blocked in the push and has an extra refcount. * base_sink_chain has taken a refcount on the sink, and is blocked on * preroll */ - ASSERT_OBJECT_REFCOUNT (src, "src", 3); + ASSERT_OBJECT_REFCOUNT (src, "src", 2); /* refcount can be 4 if the bin is still processing the async_done message of * the sink. */ - ASSERT_OBJECT_REFCOUNT_BETWEEN (sink, "sink", 3, 4); + ASSERT_OBJECT_REFCOUNT_BETWEEN (sink, "sink", 2, 3); /* 2 or 3 is valid, because the pipeline might still be posting * its state_change message */ ASSERT_OBJECT_REFCOUNT_BETWEEN (pipeline, "pipeline", 2, 3); @@ -312,8 +312,8 @@ GST_START_TEST (test_message_state_changed_children) fail_if ((gst_bus_pop (bus)) != NULL); ASSERT_OBJECT_REFCOUNT (bus, "bus", 2); - ASSERT_OBJECT_REFCOUNT (src, "src", 2); - ASSERT_OBJECT_REFCOUNT (sink, "sink", 2); + ASSERT_OBJECT_REFCOUNT (src, "src", 1); + ASSERT_OBJECT_REFCOUNT (sink, "sink", 1); ASSERT_OBJECT_REFCOUNT (pipeline, "pipeline", 1); /* change state to PLAYING, spawning three messages */ -- 2.7.4