Commit f04f2187 authored by Yong Bakos's avatar Yong Bakos Committed by Pekka Paalanen

tests: Test wl_array_release

array-test.c did not cover wl_array_release, so add one test that specifically
tests this method.
Signed-off-by: 's avatarYong Bakos <>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <>
[Pekka: do not overwrite]
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <>
parent e8ad2326
......@@ -45,6 +45,20 @@ TEST(array_init)
struct wl_array array;
void *ptr;
ptr = wl_array_add(&array, 1);
assert(ptr != NULL);
assert( != NULL);
assert( == WL_ARRAY_POISON_PTR);
struct mydata {
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