Skip to content
Snippets Groups Projects
Commit 694f4d90 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

checks: make fakesrc check work in a CK_FORK=no environment

Reset have_eos at the beginning of each test.

See #623469.
parent 95a520be
No related branches found
No related tags found
No related merge requests found
...@@ -56,6 +56,7 @@ setup_fakesrc (void) ...@@ -56,6 +56,7 @@ setup_fakesrc (void)
mysinkpad = gst_check_setup_sink_pad (fakesrc, &sinktemplate, NULL); mysinkpad = gst_check_setup_sink_pad (fakesrc, &sinktemplate, NULL);
gst_pad_set_event_function (mysinkpad, event_func); gst_pad_set_event_function (mysinkpad, event_func);
gst_pad_set_active (mysinkpad, TRUE); gst_pad_set_active (mysinkpad, TRUE);
have_eos = FALSE;
return fakesrc; return fakesrc;
} }
...@@ -81,7 +82,7 @@ GST_START_TEST (test_num_buffers) ...@@ -81,7 +82,7 @@ GST_START_TEST (test_num_buffers)
g_usleep (1000); g_usleep (1000);
} }
fail_unless (g_list_length (buffers) == 3); fail_unless_equals_int (g_list_length (buffers), 3);
gst_check_drop_buffers (); gst_check_drop_buffers ();
fail_unless (gst_element_set_state (src, fail_unless (gst_element_set_state (src,
...@@ -111,7 +112,7 @@ GST_START_TEST (test_sizetype_empty) ...@@ -111,7 +112,7 @@ GST_START_TEST (test_sizetype_empty)
g_usleep (1000); g_usleep (1000);
} }
fail_unless (g_list_length (buffers) == 100); fail_unless_equals_int (g_list_length (buffers), 100);
l = buffers; l = buffers;
while (l) { while (l) {
GstBuffer *buf = l->data; GstBuffer *buf = l->data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment