*/
static bool test_steps_mesh_channel_shutdown_01(void) {
struct timespec timeout = {0};
- meshlink_destroy("chan_shutdown_conf.1");
- meshlink_destroy("chan_shutdown_conf.2");
+ assert(meshlink_destroy("chan_shutdown_conf.1"));
+ assert(meshlink_destroy("chan_shutdown_conf.2"));
// Open two new meshlink instance.
meshlink_handle_t *mesh1 = meshlink_open("chan_shutdown_conf.1", "foo", "channels", DEV_CLASS_BACKBONE);
meshlink_close(mesh2);
meshlink_close(mesh1);
- meshlink_destroy("chan_shutdown_conf.1");
- meshlink_destroy("chan_shutdown_conf.2");
+ assert(meshlink_destroy("chan_shutdown_conf.1"));
+ assert(meshlink_destroy("chan_shutdown_conf.2"));
return true;
}
meshlink_channel_shutdown API should report proper error handling
*/
static bool test_steps_mesh_channel_shutdown_02(void) {
- meshlink_destroy("channelshutdownconf.3");
+ assert(meshlink_destroy("channelshutdownconf.3"));
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("channelshutdownconf.3");
+ assert(meshlink_destroy("channelshutdownconf.3"));
return true;
}
meshlink_channel_shutdown API should report proper error handling
*/
static bool test_steps_mesh_channel_shutdown_03(void) {
- meshlink_destroy("channelshutdownconf.4");
+ assert(meshlink_destroy("channelshutdownconf.4"));
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("channelshutdownconf.4");
+ assert(meshlink_destroy("channelshutdownconf.4"));
return true;
}