diff -r 5c0990c95f74 -r a48428642b4e test/logging_tests.c --- a/test/logging_tests.c Mon Jul 21 13:18:32 2014 +0200 +++ b/test/logging_tests.c Mon Jul 28 14:36:25 2014 +0200 @@ -50,16 +50,16 @@ "incorrect number of registered log levels"); int level = UCX_LOGGER_ERROR; - UCX_TEST_ASSERT(strcmp(ucx_map_int_get(logger->levels, level), + UCX_TEST_ASSERT(strcmp((char*)ucx_map_int_get(logger->levels, level), "[ERROR]") == 0, "invalid error level"); level = UCX_LOGGER_WARN; - UCX_TEST_ASSERT(strcmp(ucx_map_int_get(logger->levels, level), + UCX_TEST_ASSERT(strcmp((char*)ucx_map_int_get(logger->levels, level), "[WARNING]") == 0, "invalid warning level"); level = UCX_LOGGER_INFO; - UCX_TEST_ASSERT(strcmp(ucx_map_int_get(logger->levels, level), + UCX_TEST_ASSERT(strcmp((char*)ucx_map_int_get(logger->levels, level), "[INFO]") == 0, "invalid info level"); level = UCX_LOGGER_TRACE; - UCX_TEST_ASSERT(strcmp(ucx_map_int_get(logger->levels, level), + UCX_TEST_ASSERT(strcmp((char*)ucx_map_int_get(logger->levels, level), "[TRACE]") == 0, "invalid trace level"); UCX_TEST_END @@ -75,7 +75,7 @@ UcxLogger *logger = ucx_logger_new(stream, UCX_LOGGER_INFO, UCX_LOGGER_SOURCE | UCX_LOGGER_LEVEL); - logger->dateformat = "%F:"; + logger->dateformat = (char*) "%F:"; UCX_TEST_BEGIN const uint line1 = __LINE__; ucx_logger_info(logger, "allright"); @@ -92,7 +92,7 @@ size_t r = fread(buffer, 1, 100, stream); const size_t expected_length = 87; - char expected[expected_length+1]; + char expected[88]; snprintf(expected, expected_length+1, "[INFO] logging_tests.c:%u - allright\n" "[ERROR] %slogging_tests.c:%u - error 42!\n", line1, timestr, line2);