]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_submesh04.c
Fix compiler warnings in the test suites.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_submesh04.c
index 1f37071bbad3868252f4a9abb23bf805f0b37e63..2cdf9216dfe0bf1fac971639e919404510178433 100644 (file)
@@ -58,6 +58,8 @@ static black_box_state_t test_case_submesh_4_state = {
 };
 
 static int black_box_group0_setup(void **state) {
+       (void)state;
+
        const char *nodes[] = { "corenode1", "app1node1", "app1node2" };
        int num_nodes = sizeof(nodes) / sizeof(nodes[0]);
 
@@ -69,28 +71,19 @@ static int black_box_group0_setup(void **state) {
 }
 
 static int black_box_group0_teardown(void **state) {
+       (void)state;
+
        PRINT_TEST_CASE_MSG("Destroying Containers\n");
        destroy_containers();
 
        return 0;
 }
 
-static int black_box_all_nodes_setup(void **state) {
-       const char *nodes[] = { "corenode1" };
-       int num_nodes = sizeof(nodes) / sizeof(nodes[0]);
-
-       PRINT_TEST_CASE_MSG("Creating Containers\n");
-       destroy_containers();
-       create_containers(nodes, num_nodes);
-       PRINT_TEST_CASE_MSG("Created Containers\n");
-       return 0;
-}
-
 static bool event_cb(mesh_event_payload_t payload) {
        static node_status_t node_status[3] = {
-               {core_node1, 0, 3, false},
-               {app1_node1, 0, 4, false},
-               {app1_node2, 0, 7, false}
+               {core_node1, 0, 3},
+               {app1_node1, 0, 4},
+               {app1_node2, 0, 7},
        };
 
        fprintf(stderr, "%s(%lu) : %s\n", event_node_name[payload.client_id], time(NULL), event_status[payload.mesh_event]);
@@ -131,10 +124,7 @@ static void test_case_submesh_04(void **state) {
 */
 static bool test_steps_submesh_04(void) {
        char *invite_app1node1, *invite_app1node2;
-       bool result = false;
-       int i;
        char *import;
-       pthread_t thread1, thread2;
 
        import = mesh_event_sock_create(eth_if_name);
        invite_app1node1 = invite_in_container("corenode1", "app1node1");