fixes logger test case

Sat, 12 May 2018 13:57:12 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 12 May 2018 13:57:12 +0200
changeset 296
e325716a442c
parent 295
7fc65395188e
child 297
ba760f2195c3

fixes logger test case

test/logging_tests.c file | annotate | diff | comparison | revisions
--- a/test/logging_tests.c	Fri May 11 19:48:19 2018 +0200
+++ b/test/logging_tests.c	Sat May 12 13:57:12 2018 +0200
@@ -46,7 +46,7 @@
     UCX_TEST_ASSERT(strcmp(logger->dateformat, "%F %T %z ") == 0,
         "date format not set to \"%F %T %z\"");
     
-    UCX_TEST_ASSERT(logger->levels->count == 4,
+    UCX_TEST_ASSERT(logger->levels->count == 5,
         "incorrect number of registered log levels");
 
     int level = UCX_LOGGER_ERROR;
@@ -55,6 +55,9 @@
     level = UCX_LOGGER_WARN;
     UCX_TEST_ASSERT(strcmp((char*)ucx_map_int_get(logger->levels, level),
         "[WARNING]") == 0, "invalid warning level");
+    level = UCX_LOGGER_DEBUG;
+    UCX_TEST_ASSERT(strcmp((char*)ucx_map_int_get(logger->levels, level),
+        "[DEBUG]") == 0, "invalid debug level");
     level = UCX_LOGGER_INFO;
     UCX_TEST_ASSERT(strcmp((char*)ucx_map_int_get(logger->levels, level),
         "[INFO]") == 0, "invalid info level");

mercurial