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:
Thomas Vander Stichele 2005-06-21 17:41:35 +00:00
parent e0a32b9252
commit 02b3212e25
5 changed files with 45 additions and 0 deletions

View file

@ -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:

View file

@ -1,4 +1,5 @@
.dirstamp
gst
gstbin
gstbuffer
gstbus
@ -10,3 +11,5 @@ gstmessage
gstobject
gstpad
gstsystemclock
gsttag
gstvalue

View file

@ -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;

View file

@ -1,4 +1,5 @@
.dirstamp
gst
gstbin
gstbuffer
gstbus
@ -10,3 +11,5 @@ gstmessage
gstobject
gstpad
gstsystemclock
gsttag
gstvalue

View file

@ -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;