*/
bool test_steps_mesh_random_port_bindings_01(void) {
meshlink_handle_t *relay = NULL;
- meshlink_destroy("relay_conf");
+ assert(meshlink_destroy("relay_conf"));
meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_message);
ipv6_fd = -1;
meshlink_close(relay);
- meshlink_destroy("relay_conf");
+ assert(meshlink_destroy("relay_conf"));
return true;
}
Test Steps:
1. Open a node and start the instance.
2. Call meshlink_set_port() with port 10000
- 3. When try bind succeds block the port using devtool_trybind_probe() callback.
+ 3. When try bind succeeds block the port using devtool_trybind_probe() callback.
Expected Result:
The meshlink_set_port() API should fail.
*/
bool test_steps_mesh_random_port_bindings_02(void) {
meshlink_handle_t *relay = NULL;
- meshlink_destroy("relay_conf");
+ assert(meshlink_destroy("relay_conf"));
meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_message);
ipv6_fd = -1;
meshlink_close(relay);
- meshlink_destroy("relay_conf");
+ assert(meshlink_destroy("relay_conf"));
return true;
}
bool test_steps_mesh_random_port_bindings_03(void) {
int port, new_port;
meshlink_handle_t *relay = NULL;
- meshlink_destroy("relay_conf");
+ assert(meshlink_destroy("relay_conf"));
meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_message);
ipv6_fd = -1;
meshlink_close(relay);
- meshlink_destroy("relay_conf");
+ assert(meshlink_destroy("relay_conf"));
return true;
}