X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=t%2Funit%2Futils%2Fproto_test.c;h=52ae936bc4bf6a69bf3ab77f81e67093524e26d3;hp=1ec0615fa33fd7a7f29c2796a9c2c369e92afebe;hb=8dd1618e1dc92bd9bc60d78401e879caf919e37e;hpb=7624ec9003444dbd76f03dfeda38167f3831fc48 diff --git a/t/unit/utils/proto_test.c b/t/unit/utils/proto_test.c index 1ec0615..52ae936 100644 --- a/t/unit/utils/proto_test.c +++ b/t/unit/utils/proto_test.c @@ -39,6 +39,7 @@ START_TEST(test_marshal_data) #define STRING_TYPE "\0\0\0\3" #define DATETIME_TYPE "\0\0\0\4" #define BINARY_TYPE "\0\0\0\5" +#define REGEX_TYPE "\0\0\0\6" #define NULL_ARRAY "\0\0\1\0" #define INT_ARRAY "\0\0\1\1" @@ -46,6 +47,7 @@ START_TEST(test_marshal_data) #define STRING_ARRAY "\0\0\1\3" #define DATETIME_ARRAY "\0\0\1\4" #define BINARY_ARRAY "\0\0\1\5" +#define REGEX_ARRAY "\0\0\1\6" regex_t dummy_re; int64_t int_values[] = { 47, 11, 23 }; @@ -85,7 +87,7 @@ START_TEST(test_marshal_data) }, { { SDB_TYPE_REGEX, { .re = { "dummy", dummy_re } } }, - -1, NULL, /* not supported */ + 14, REGEX_TYPE "\0\0\0\x6" "dummy\0", }, { { SDB_TYPE_INTEGER | SDB_TYPE_ARRAY, { .array = {