]> granicus.if.org Git - libevent/commitdiff
test/regress_be: socket_filter_inactive: check bufferevent after creation
authorAzat Khuzhin <a3at.mail@gmail.com>
Fri, 30 Oct 2015 15:37:44 +0000 (18:37 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Fri, 30 Oct 2015 15:38:09 +0000 (18:38 +0300)
Fixes:
../test/regress_bufferevent.c: In function ‘test_bufferevent_socket_filter_inactive’:
../test/regress_bufferevent.c:1180:1: warning: label ‘end’ defined but not used [-Wunused-label]
 end:

test/regress_bufferevent.c

index 72636ca60eb510940dc59b954d1ef42ed0ad1841..9757875c3ee26654097413e58cd5521bc2275cc6 100644 (file)
@@ -1158,7 +1158,9 @@ test_bufferevent_socket_filter_inactive(void *arg)
        struct bufferevent *bev = NULL, *bevf = NULL;
 
        bev = bufferevent_socket_new(data->base, -1, 0);
+       tt_assert(bev);
        bevf = bufferevent_filter_new(bev, NULL, NULL, 0, NULL, NULL);
+       tt_assert(bevf);
 
 end:
        if (bevf)