check/gst/gstcaps.c: Testcase to show error in buffer-on-caps serialisation.

Original commit message from CVS:
* check/gst/gstcaps.c: (START_TEST), (gst_caps_suite):
Testcase to show error in buffer-on-caps serialisation.
This commit is contained in:
Wim Taymans 2005-06-20 15:14:58 +00:00
parent 4a81d9b911
commit dfe3f7f6f5
3 changed files with 37 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-06-20 Wim Taymans <wim@fluendo.com>
* check/gst/gstcaps.c: (START_TEST), (gst_caps_suite):
Testcase to show error in buffer-on-caps serialisation.
2005-06-20 Andy Wingo <wingo@pobox.com> 2005-06-20 Andy Wingo <wingo@pobox.com>
* docs/random/wingo/porting-plugins-to-0.9: A pitiful document I * docs/random/wingo/porting-plugins-to-0.9: A pitiful document I

View file

@ -23,6 +23,21 @@
#include "../gstcheck.h" #include "../gstcheck.h"
START_TEST (test_buffer)
{
GstCaps *c1;
GstBuffer *buffer;
buffer = gst_buffer_new_and_alloc (1000);
c1 = gst_caps_new_simple ("audio/x-raw-int",
"buffer", GST_TYPE_BUFFER, buffer, NULL);
GST_DEBUG ("caps: %" GST_PTR_FORMAT, c1);
gst_buffer_unref (buffer);
}
END_TEST
START_TEST (test_double_append) START_TEST (test_double_append)
{ {
GstStructure *s1; GstStructure *s1;
@ -70,6 +85,7 @@ gst_caps_suite (void)
suite_add_tcase (s, tc_chain); suite_add_tcase (s, tc_chain);
tcase_add_test (tc_chain, test_double_append); tcase_add_test (tc_chain, test_double_append);
tcase_add_test (tc_chain, test_mutability); tcase_add_test (tc_chain, test_mutability);
tcase_add_test (tc_chain, test_buffer);
return s; return s;
} }

View file

@ -23,6 +23,21 @@
#include "../gstcheck.h" #include "../gstcheck.h"
START_TEST (test_buffer)
{
GstCaps *c1;
GstBuffer *buffer;
buffer = gst_buffer_new_and_alloc (1000);
c1 = gst_caps_new_simple ("audio/x-raw-int",
"buffer", GST_TYPE_BUFFER, buffer, NULL);
GST_DEBUG ("caps: %" GST_PTR_FORMAT, c1);
gst_buffer_unref (buffer);
}
END_TEST
START_TEST (test_double_append) START_TEST (test_double_append)
{ {
GstStructure *s1; GstStructure *s1;
@ -70,6 +85,7 @@ gst_caps_suite (void)
suite_add_tcase (s, tc_chain); suite_add_tcase (s, tc_chain);
tcase_add_test (tc_chain, test_double_append); tcase_add_test (tc_chain, test_double_append);
tcase_add_test (tc_chain, test_mutability); tcase_add_test (tc_chain, test_mutability);
tcase_add_test (tc_chain, test_buffer);
return s; return s;
} }