X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_cases_rec_cb.c;h=e659ead8b2d0c01c2278199934cf134d5882ce46;hb=HEAD;hp=e94f9bfa637aed21ae2d51a478fff191e1263865;hpb=f1da50294494310d7a299c29af5649d4415bd38a;p=meshlink diff --git a/test/blackbox/run_blackbox_tests/test_cases_rec_cb.c b/test/blackbox/run_blackbox_tests/test_cases_rec_cb.c index e94f9bfa..e659ead8 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_rec_cb.c +++ b/test/blackbox/run_blackbox_tests/test_cases_rec_cb.c @@ -64,7 +64,7 @@ static black_box_state_t test_case_set_rec_cb_03_state = { static bool received; /* mutex for the common variable */ -pthread_mutex_t lock; +static pthread_mutex_t lock; /* receive callback function */ static void rec_cb(meshlink_handle_t *mesh, meshlink_node_t *source, const void *data, size_t len) { @@ -121,7 +121,7 @@ static bool test_set_rec_cb_01(void) { pthread_mutex_unlock(&lock); meshlink_close(mesh_handle); - meshlink_destroy("set_receive_cb_conf"); + assert(meshlink_destroy("set_receive_cb_conf")); return true; } @@ -189,7 +189,7 @@ static bool test_set_rec_cb_03(void) { pthread_mutex_unlock(&lock); meshlink_close(mesh_handle); - meshlink_destroy("set_receive_cb_conf"); + assert(meshlink_destroy("set_receive_cb_conf")); return true; }