tests: add unit test for queuearray expansion from 1

https://bugzilla.gnome.org/show_bug.cgi?id=731349
This commit is contained in:
Tim-Philipp Müller 2014-06-07 09:46:42 +01:00
parent 1cd4bd64b0
commit 9c4e1d3689

View file

@ -250,6 +250,18 @@ GST_START_TEST (test_array_drop2)
GST_END_TEST;
GST_START_TEST (test_array_grow_from_prealloc1)
{
GstQueueArray *array;
array = gst_queue_array_new (1);
gst_queue_array_push_tail (array, NULL);
gst_queue_array_push_tail (array, NULL);
gst_queue_array_free (array);
}
GST_END_TEST;
static Suite *
gst_queue_array_suite (void)
{
@ -264,6 +276,7 @@ gst_queue_array_suite (void)
tcase_add_test (tc_chain, test_array_grow_middle);
tcase_add_test (tc_chain, test_array_grow_end);
tcase_add_test (tc_chain, test_array_drop2);
tcase_add_test (tc_chain, test_array_grow_from_prealloc1);
return s;
}