tests/check/gst/gstutils.c: Test case originally showed the problem fixed below,...
authorTim-Philipp Müller <tim@centricular.net>
Thu, 23 Feb 2006 16:56:18 +0000 (16:56 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 23 Feb 2006 16:56:18 +0000 (16:56 +0000)
Original commit message from CVS:
* tests/check/gst/gstutils.c: (test_buffer_probe_n_times):
Test case originally showed the problem fixed below,
but was then amended. Add checks back at the place
where they used to be.

ChangeLog
tests/check/gst/gstutils.c

index 0be3a05..56c8392 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2006-02-23  Tim-Philipp Müller  <tim at centricular dot net>
 
+       * tests/check/gst/gstutils.c: (test_buffer_probe_n_times):
+         Test case originally showed the problem fixed below,
+         but was then amended. Add checks back at the place
+         where they used to be.
+
+2006-02-23  Tim-Philipp Müller  <tim at centricular dot net>
+
        * libs/gst/base/gstbasesrc.c: (gst_base_src_class_init),
        (gst_base_src_init), (gst_base_src_loop),
        (gst_base_src_activate_push), (gst_base_src_activate_pull),
index e9c4005..c840645 100644 (file)
@@ -94,6 +94,10 @@ GST_START_TEST (test_buffer_probe_n_times)
   gst_element_set_state (pipeline, GST_STATE_NULL);
   gst_object_unref (pipeline);
 
+  /* make sure nothing was sent in addition to the above when shutting down */
+  g_assert (n_buffer_probes == 10);     /* one for every buffer */
+  g_assert (n_event_probes == 2);       /* new segment and eos */
+  g_assert (n_data_probes == 12);       /* duh */
 } GST_END_TEST;
 
 static int n_data_probes_once = 0;