]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_key_rotation.c
Ensure NDEBUG is not set in the test suite.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_key_rotation.c
index e1fae3c37f68081e5898790b1ec8d5b7190b24f7..695d5e69607e50701ce0455d86da2374ffaa0f11 100644 (file)
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include <assert.h>
 #include <string.h>
 #include <stdlib.h>
@@ -50,19 +54,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);