summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2014-01-10 12:28:43 -0800
committerKristian Høgsberg <krh@bitplanet.net>2014-01-15 10:46:08 -0800
commit3a1be1e6fea34fa87f9329d7bf06bd40340f754f (patch)
tree9bc1f70b0365a934de8c9c6e06d9bc1b215a5a81
parentarray-test: assert wl_array_add result is not NULL (diff)
downloadwayland-3a1be1e6fea34fa87f9329d7bf06bd40340f754f.tar
wayland-3a1be1e6fea34fa87f9329d7bf06bd40340f754f.tar.gz
wayland-3a1be1e6fea34fa87f9329d7bf06bd40340f754f.tar.bz2
wayland-3a1be1e6fea34fa87f9329d7bf06bd40340f754f.tar.lz
wayland-3a1be1e6fea34fa87f9329d7bf06bd40340f754f.tar.xz
wayland-3a1be1e6fea34fa87f9329d7bf06bd40340f754f.tar.zst
wayland-3a1be1e6fea34fa87f9329d7bf06bd40340f754f.zip
connection-test: assert closure is not NULL before invoking it
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
-rw-r--r--tests/connection-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/connection-test.c b/tests/connection-test.c
index e284ea0..52d235d 100644
--- a/tests/connection-test.c
+++ b/tests/connection-test.c
@@ -418,6 +418,7 @@ marshal_demarshal(struct marshal_data *data,
object.id = msg[0];
closure = wl_connection_demarshal(data->read_connection,
size, &objects, &message);
+ assert(closure);
wl_closure_invoke(closure, WL_CLOSURE_INVOKE_SERVER, &object, 0, data);
wl_closure_destroy(closure);
}