*/
static bool test_steps_set_channel_receive_cb_01(void) {
struct timespec timeout = {0};
- meshlink_destroy("channelreceiveconf");
+ assert(meshlink_destroy("channelreceiveconf"));
meshlink_set_log_cb(NULL, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger);
/* Create meshlink instance */
pthread_mutex_unlock(& lock_receive);
meshlink_close(mesh_handle);
- meshlink_destroy("channelreceiveconf");
+ assert(meshlink_destroy("channelreceiveconf"));
return true;
}
meshlink_channel_set_receive_cb returning proper meshlink_errno.
*/
static bool test_steps_set_channel_receive_cb_02(void) {
- meshlink_destroy("channelreceiveconf");
+ assert(meshlink_destroy("channelreceiveconf"));
meshlink_set_log_cb(NULL, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger);
/* Create meshlink instance */
assert_int_equal(meshlink_errno, MESHLINK_EINVAL);
meshlink_close(mesh_handle);
- meshlink_destroy("channelreceiveconf");
+ assert(meshlink_destroy("channelreceiveconf"));
return true;
}
meshlink_channel_set_receive_cb returning proper meshlink_errno.
*/
static bool test_steps_set_channel_receive_cb_03(void) {
- meshlink_destroy("channelreceiveconf");
+ assert(meshlink_destroy("channelreceiveconf"));
meshlink_set_log_cb(NULL, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger);
/* Create meshlink instance */
assert_int_equal(meshlink_errno, MESHLINK_EINVAL);
meshlink_close(mesh_handle);
- meshlink_destroy("channelreceiveconf");
+ assert(meshlink_destroy("channelreceiveconf"));
return true;
}