tests/lib/serialize.c: fix error codes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2016-02-02 10:08:08 +03:00
parent 2fa5952097
commit c49d7f76b0

View File

@ -117,31 +117,31 @@ static const struct test_deserialize_incorrect_ds
{
's',
NULL,
-1,
0, /* FIXME, TODO */
"mc_serialize_str(): Input data is NULL or empty."
},
{
's',
"incorrect string",
-2,
0, /* FIXME, TODO */
"mc_serialize_str(): String prefix doesn't equal to 's'"
},
{
's',
"s12345string without delimiter",
-3,
0, /* FIXME, TODO */
"mc_serialize_str(): Length delimiter ':' doesn't exists"
},
{
's',
"s1234567890123456789012345678901234567890123456789012345678901234567890:too big number",
-3,
0, /* FIXME, TODO */
"mc_serialize_str(): Too big string length"
},
{
's',
"s500:actual string length less that specified length",
-3,
0, /* FIXME, TODO */
"mc_serialize_str(): Specified data length (500) is greater than actual data length (47)"
},
};
@ -264,22 +264,22 @@ static const struct test_deserialize_config_incorrect_ds
{
{
"g123error in group name",
-3,
0, /* FIXME, TODO */
"mc_deserialize_config() at 1: mc_serialize_str(): Length delimiter ':' doesn't exists"
},
{
"p6:param1v10:some valuep6:param2v11:some value ",
-2,
0, /* FIXME, TODO */
"mc_deserialize_config() at 1: mc_serialize_str(): String prefix doesn't equal to 'g'"
},
{
"g6:group1v10:some valuep6:param2v11:some value ",
-2,
0, /* FIXME, TODO */
"mc_deserialize_config() at 10: mc_serialize_str(): String prefix doesn't equal to 'p'"
},
{
"g6:group1p6000:param2v11:some value ",
-3,
0, /* FIXME, TODO */
"mc_deserialize_config() at 10: mc_serialize_str(): Specified data length (6000) is greater than actual data length (21)"
},
};