checks: make fakesrc check work in a CK_FORK=no environment
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 3 Jul 2010 14:13:14 +0000 (15:13 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 3 Jul 2010 14:13:14 +0000 (15:13 +0100)
Reset have_eos at the beginning of each test.

See #623469.

tests/check/elements/fakesrc.c

index 2654a38..3573be6 100644 (file)
@@ -56,6 +56,7 @@ setup_fakesrc (void)
   mysinkpad = gst_check_setup_sink_pad (fakesrc, &sinktemplate, NULL);
   gst_pad_set_event_function (mysinkpad, event_func);
   gst_pad_set_active (mysinkpad, TRUE);
+  have_eos = FALSE;
   return fakesrc;
 }
 
@@ -81,7 +82,7 @@ GST_START_TEST (test_num_buffers)
     g_usleep (1000);
   }
 
-  fail_unless (g_list_length (buffers) == 3);
+  fail_unless_equals_int (g_list_length (buffers), 3);
   gst_check_drop_buffers ();
 
   fail_unless (gst_element_set_state (src,
@@ -111,7 +112,7 @@ GST_START_TEST (test_sizetype_empty)
     g_usleep (1000);
   }
 
-  fail_unless (g_list_length (buffers) == 100);
+  fail_unless_equals_int (g_list_length (buffers), 100);
   l = buffers;
   while (l) {
     GstBuffer *buf = l->data;