array-test: Include wayland-util.h and simplify init test
authorYong Bakos <ybakos@humanoriented.com>
Tue, 27 Sep 2016 18:03:50 +0000 (13:03 -0500)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 18 Oct 2016 09:24:53 +0000 (12:24 +0300)
commita1ab2c03ae7471895f8d24f9186c5ac288545e7f
treea270bacbb2b5a81b3d7af05968a4a281cfe6c3c6
parentf04f2187810fc8dcda92305df76fb54a255c20f9
array-test: Include wayland-util.h and simplify init test

Include wayland-util.h in addition to wayland-private.h, to be more explicit
about where wl_array is defined.

Remove the useless repeated testing of wl_array_init, because if it fails once
out of thousands of iterations we're all doomed anyway.

Signed-off-by: Yong Bakos <ybakos@humanoriented.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
[Pekka: add the memset]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
tests/array-test.c