mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
tests: add unit test for queuearray expansion from 1
https://bugzilla.gnome.org/show_bug.cgi?id=731349
This commit is contained in:
parent
1cd4bd64b0
commit
9c4e1d3689
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue