Commit 2d328a45 authored by Yong Bakos's avatar Yong Bakos Committed by Pekka Paalanen

tests: Add nullable check to wl_message_count_arrays

Array argument symbols in a wl_message may be nullable, but the test for
wl_message_count_arrays did not test this. Add one more wl_message with
nullable array arguments.
Signed-off-by: 's avatarYong Bakos <ybakos@humanoriented.com>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
parent b0cd65de
......@@ -64,7 +64,8 @@ TEST(message_count_arrays)
{ "multiple", "aaiufaasonhaa", NULL },
{ "leading_version", "2aaiufaasonhaa", NULL },
{ "among_nullables", "iufsa?oa?nah", NULL },
{ "all_mixed", "2aiufas?oa?na", NULL },
{ "nullable", "?aiufs?a?onh?a", NULL },
{ "all_mixed", "2?aiufas?oa?na", NULL },
};
const struct {
const struct wl_message *message;
......@@ -80,7 +81,8 @@ TEST(message_count_arrays)
{ &fake_messages[5], 6 },
{ &fake_messages[6], 6 },
{ &fake_messages[7], 3 },
{ &fake_messages[8], 4 }
{ &fake_messages[8], 3 },
{ &fake_messages[9], 4 },
};
for (i = 0; i < ARRAY_LENGTH(messages); ++i) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment