# HG changeset patch # User Mike Becker # Date 1526126232 -7200 # Node ID e325716a442c215bc4cf63ef8983ba0a4d5cfbc1 # Parent 7fc65395188e93cf4299c6d8ad23b10e1a5d72a4 fixes logger test case diff -r 7fc65395188e -r e325716a442c test/logging_tests.c --- 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");