tests: wavpackparse: fix unit test

See also https://bugzilla.gnome.org/show_bug.cgi?id=738237
This commit is contained in:
Mark Nauwelaerts 2015-05-10 14:21:04 +02:00
parent 2e412a447a
commit 692df969ea

View file

@ -116,6 +116,9 @@ GST_START_TEST (test_parsing_valid_frames)
/* should decode the buffer without problems */
fail_unless_equals_int (gst_pad_push (mysrcpad, inbuffer), GST_FLOW_OK);
/* inform of no further data */
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
num_buffers = g_list_length (buffers);
/* should get 2 buffers, each one complete wavpack frame */
fail_unless_equals_int (num_buffers, 2);
@ -177,6 +180,9 @@ GST_START_TEST (test_parsing_invalid_first_header)
/* should decode the buffer without problems */
fail_unless_equals_int (gst_pad_push (mysrcpad, inbuffer), GST_FLOW_OK);
/* inform of no further data */
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
num_buffers = g_list_length (buffers);
/* should get 1 buffers, the second non-broken one */