X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_cases_key_rotation.c;h=e1fae3c37f68081e5898790b1ec8d5b7190b24f7;hb=cdb3dada645394bb1e0d0bf7816291fbd9a2a4a0;hp=2768c80c6e3898ec08ece10794386e15a393fcfd;hpb=3be622ad230c70e9753f9f9737333a2f803b125e;p=meshlink diff --git a/test/blackbox/run_blackbox_tests/test_cases_key_rotation.c b/test/blackbox/run_blackbox_tests/test_cases_key_rotation.c index 2768c80c..e1fae3c3 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_key_rotation.c +++ b/test/blackbox/run_blackbox_tests/test_cases_key_rotation.c @@ -334,6 +334,8 @@ static void test_case_key_rotation_05(void **state) { static int break_stage; static void nop_stage(int stage) { + (void)stage; + return; } @@ -342,7 +344,7 @@ static void debug_probe(int stage) { // Terminate the node at the specified stage (by @ break_stage @ ) if(stage == break_stage) { raise(SIGINT); - } else if((break_stage < 1) || (break_stage > 11)) { + } else if((break_stage < 1) || (break_stage > 3)) { fprintf(stderr, "INVALID stage break\n"); raise(SIGABRT); } @@ -381,7 +383,7 @@ static bool test_key_rotation_05(void) { // incrementally debug meshlink_encrypted_key_rotate API atomicity - for(break_stage = 1; break_stage <= 10; break_stage += 1) { + for(break_stage = 1; break_stage <= 3; break_stage += 1) { fprintf(stderr, "Debugging stage %d\n", break_stage); meshlink_destroy("encrypted_conf"); @@ -450,13 +452,9 @@ static bool test_key_rotation_05(void) { meshlink_destroy("encrypted_conf.1"); - set_sync_flag(&status_changed_cond, false); - bar_reachable = false; - meshlink_handle_t *mesh2 = meshlink_open("encrypted_conf.1", "bar", "bar", DEV_CLASS_BACKBONE); assert(mesh2); - meshlink_set_node_status_cb(mesh2, node_status_cb); meshlink_set_log_cb(mesh2, MESHLINK_DEBUG, log_cb); meshlink_enable_discovery(mesh2, false);