resources-test: assert non-NULL return values
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Fri, 10 Jan 2014 21:21:04 +0000 (13:21 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 15 Jan 2014 18:46:09 +0000 (10:46 -0800)
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
tests/resources-test.c

index d7a428a..514c031 100644 (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);