summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2014-01-10 21:18:42 (GMT)
committerKristian Høgsberg <krh@bitplanet.net>2014-01-15 18:46:08 (GMT)
commit22a4a95873a4ccfc1c986761782b666442dd244a (patch)
treeebebb01932621880264fe92528a7414cab710a2b
parente0c58cea4e2bab27f825a9cbe59e81d5c1865472 (diff)
downloadwayland-22a4a95873a4ccfc1c986761782b666442dd244a.tar.gz
wayland-22a4a95873a4ccfc1c986761782b666442dd244a.tar.xz
queue-test: assert non-NULL return values
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
-rw-r--r--tests/queue-test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/queue-test.c b/tests/queue-test.c
index 87147c1..a4b165d 100644
--- a/tests/queue-test.c
+++ b/tests/queue-test.c
@@ -79,6 +79,7 @@ client_test_proxy_destroy(void)
client_assert(display);
registry = wl_display_get_registry(display);
+ assert(registry != NULL);
wl_registry_add_listener(registry, &registry_listener,
&counter);
wl_display_roundtrip(display);
@@ -137,10 +138,12 @@ client_test_multiple_queues(void)
state.done = false;
callback1 = wl_display_sync(state.display);
+ assert(callback1 != NULL);
wl_callback_add_listener(callback1, &sync_listener, &state);
wl_proxy_set_queue((struct wl_proxy *) callback1, queue);
state.callback2 = wl_display_sync(state.display);
+ assert(state.callback2 != NULL);
wl_callback_add_listener(state.callback2, &sync_listener, NULL);
wl_proxy_set_queue((struct wl_proxy *) state.callback2, queue);