X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_cases_key_rotation.c;h=b413c52196d69560b0e965a748ff0b6fa46ba550;hb=9a2520c36431a8a5fd90451e97f488c22f4decc5;hp=a42a54d5529e29e04500a25e07f5d0891d32722b;hpb=40e2e3e7656636f9a5db317fed1923ed84fffd64;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 a42a54d5..b413c521 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_key_rotation.c +++ b/test/blackbox/run_blackbox_tests/test_cases_key_rotation.c @@ -50,19 +50,6 @@ static bool test_key_rotation_04(void); static void test_case_key_rotation_05(void **state); static bool test_key_rotation_05(void); -static void log_cb(meshlink_handle_t *mesh, meshlink_log_level_t level, const char *text) { - - static const char *levelstr[] = { - [MESHLINK_DEBUG] = "\x1b[34mDEBUG", - [MESHLINK_INFO] = "\x1b[32mINFO", - [MESHLINK_WARNING] = "\x1b[33mWARNING", - [MESHLINK_ERROR] = "\x1b[31mERROR", - [MESHLINK_CRITICAL] = "\x1b[31mCRITICAL", - }; - - fprintf(stderr, "%s(%s):\x1b[0m %s\n", mesh->name, levelstr[level], text); -} - /* Execute key rotation Test Case # 1 - Sanity test */ static void test_case_key_rotation_01(void **state) { execute_test(test_key_rotation_01, state); @@ -334,6 +321,8 @@ static void test_case_key_rotation_05(void **state) { static int break_stage; static void nop_stage(int stage) { + (void)stage; + return; }