summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2014-01-10 21:04:34 (GMT)
committerKristian Høgsberg <krh@bitplanet.net>2014-01-15 18:46:08 (GMT)
commite0c58cea4e2bab27f825a9cbe59e81d5c1865472 (patch)
treeb2150bccbd7687108e9eb45309de106a80c0ac7d
parent5e096ccc947ca46cd23a6b0e72e13452fccc81f8 (diff)
downloadwayland-e0c58cea4e2bab27f825a9cbe59e81d5c1865472.tar.gz
wayland-e0c58cea4e2bab27f825a9cbe59e81d5c1865472.tar.xz
os-wrappers-test: assert closure is not NULL before invoking it
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
-rw-r--r--tests/os-wrappers-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/os-wrappers-test.c b/tests/os-wrappers-test.c
index 2717253..e5cdac4 100644
--- a/tests/os-wrappers-test.c
+++ b/tests/os-wrappers-test.c
@@ -252,6 +252,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);
}