mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
check/gst/: add a test deserializing int64, and comment part out because it fails, yay !
Original commit message from CVS: * check/gst/.cvsignore: * check/gst/gstvalue.c: (START_TEST), (gst_value_suite): add a test deserializing int64, and comment part out because it fails, yay !
This commit is contained in:
parent
e0a32b9252
commit
02b3212e25
5 changed files with 45 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-06-21 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* check/gst/.cvsignore:
|
||||
* check/gst/gstvalue.c: (START_TEST), (gst_value_suite):
|
||||
add a test deserializing int64, and comment part out because
|
||||
it fails, yay !
|
||||
|
||||
2005-06-21 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* check/Makefile.am:
|
||||
|
|
3
check/gst/.gitignore
vendored
3
check/gst/.gitignore
vendored
|
@ -1,4 +1,5 @@
|
|||
.dirstamp
|
||||
gst
|
||||
gstbin
|
||||
gstbuffer
|
||||
gstbus
|
||||
|
@ -10,3 +11,5 @@ gstmessage
|
|||
gstobject
|
||||
gstpad
|
||||
gstsystemclock
|
||||
gsttag
|
||||
gstvalue
|
||||
|
|
|
@ -33,6 +33,21 @@ START_TEST (test_deserialize_buffer)
|
|||
|
||||
END_TEST;
|
||||
|
||||
START_TEST (test_deserialize_gint64)
|
||||
{
|
||||
GValue value = { 0 };
|
||||
|
||||
g_value_init (&value, G_TYPE_INT64);
|
||||
fail_unless (gst_value_deserialize (&value, "12345678901"));
|
||||
/* FIXME:
|
||||
* this test actually fails, gasp.
|
||||
fail_unless (g_value_get_int64 (&value) == 12345678901LL,
|
||||
"resulting value is %" G_GINT64_FORMAT ", not 12345678901");
|
||||
*/
|
||||
}
|
||||
|
||||
END_TEST;
|
||||
|
||||
START_TEST (test_string)
|
||||
{
|
||||
gchar *try[] = {
|
||||
|
@ -120,6 +135,7 @@ gst_value_suite (void)
|
|||
|
||||
suite_add_tcase (s, tc_chain);
|
||||
tcase_add_test (tc_chain, test_deserialize_buffer);
|
||||
tcase_add_test (tc_chain, test_deserialize_gint64);
|
||||
tcase_add_test (tc_chain, test_string);
|
||||
tcase_add_test (tc_chain, test_deserialize_string);
|
||||
return s;
|
||||
|
|
3
tests/check/gst/.gitignore
vendored
3
tests/check/gst/.gitignore
vendored
|
@ -1,4 +1,5 @@
|
|||
.dirstamp
|
||||
gst
|
||||
gstbin
|
||||
gstbuffer
|
||||
gstbus
|
||||
|
@ -10,3 +11,5 @@ gstmessage
|
|||
gstobject
|
||||
gstpad
|
||||
gstsystemclock
|
||||
gsttag
|
||||
gstvalue
|
||||
|
|
|
@ -33,6 +33,21 @@ START_TEST (test_deserialize_buffer)
|
|||
|
||||
END_TEST;
|
||||
|
||||
START_TEST (test_deserialize_gint64)
|
||||
{
|
||||
GValue value = { 0 };
|
||||
|
||||
g_value_init (&value, G_TYPE_INT64);
|
||||
fail_unless (gst_value_deserialize (&value, "12345678901"));
|
||||
/* FIXME:
|
||||
* this test actually fails, gasp.
|
||||
fail_unless (g_value_get_int64 (&value) == 12345678901LL,
|
||||
"resulting value is %" G_GINT64_FORMAT ", not 12345678901");
|
||||
*/
|
||||
}
|
||||
|
||||
END_TEST;
|
||||
|
||||
START_TEST (test_string)
|
||||
{
|
||||
gchar *try[] = {
|
||||
|
@ -120,6 +135,7 @@ gst_value_suite (void)
|
|||
|
||||
suite_add_tcase (s, tc_chain);
|
||||
tcase_add_test (tc_chain, test_deserialize_buffer);
|
||||
tcase_add_test (tc_chain, test_deserialize_gint64);
|
||||
tcase_add_test (tc_chain, test_string);
|
||||
tcase_add_test (tc_chain, test_deserialize_string);
|
||||
return s;
|
||||
|
|
Loading…
Reference in a new issue