Sat, 12 May 2018 13:57:12 +0200
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");