From c0218227fedf12272db39b088aed45198daf5ada Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Fri, 10 Jan 2014 13:21:04 -0800 Subject: [PATCH] resources-test: assert non-NULL return values Signed-off-by: U. Artie Eoff --- tests/resources-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/resources-test.c b/tests/resources-test.c index d7a428a..514c031 100644 --- a/tests/resources-test.c +++ b/tests/resources-test.c @@ -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); -- 2.7.4