resources-test: assert non-NULL return values

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
U. Artie Eoff 2014-01-10 13:21:04 -08:00 committed by Kristian Høgsberg
parent 22a4a95873
commit c0218227fe

View file

@ -156,6 +156,7 @@ TEST(create_resource_with_same_id)
/* this one should replace the old one */
res2 = wl_resource_create(client, &wl_display_interface, 1, id);
assert(res2 != NULL);
assert(wl_client_get_object(client, id) == res2);
wl_resource_destroy(res2);