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

tests: Add test for wl_list_length

list-test.c did not cover wl_list_length, so add one test that specifically
tests this method.
Signed-off-by: default avatarYong Bakos <>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <>
parent d9ef8821
......@@ -57,6 +57,19 @@ TEST(list_insert)
assert( == &list);
struct wl_list list;
struct element e;
assert(wl_list_length(&list) == 0);
wl_list_insert(&list, &;
assert(wl_list_length(&list) == 1);
assert(wl_list_length(&list) == 0);
struct wl_list list;
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