Commit 9baef072 authored by Christian Kellner's avatar Christian Kellner

test: logging: check level_to_{string, priority}

Check we get any output at all from the bolt_log_level_to_string,
and to_priority functions.
parent 3d31db6c
......@@ -152,6 +152,20 @@ test_log_basic (TestLog *tt, gconstpointer user_data)
g_log_set_writer_func (test_writer, &tt->data, NULL);
bolt_log ("bolt-test", G_LOG_LEVEL_MESSAGE, "test");
g_assert_nonnull (bolt_log_level_to_string (G_LOG_LEVEL_ERROR));
g_assert_nonnull (bolt_log_level_to_string (G_LOG_LEVEL_CRITICAL));
g_assert_nonnull (bolt_log_level_to_string (G_LOG_LEVEL_WARNING));
g_assert_nonnull (bolt_log_level_to_string (G_LOG_LEVEL_MESSAGE));
g_assert_nonnull (bolt_log_level_to_string (G_LOG_LEVEL_INFO));
g_assert_nonnull (bolt_log_level_to_string (G_LOG_LEVEL_DEBUG));
g_assert_nonnull (bolt_log_level_to_priority (G_LOG_LEVEL_ERROR));
g_assert_nonnull (bolt_log_level_to_priority (G_LOG_LEVEL_CRITICAL));
g_assert_nonnull (bolt_log_level_to_priority (G_LOG_LEVEL_WARNING));
g_assert_nonnull (bolt_log_level_to_priority (G_LOG_LEVEL_MESSAGE));
g_assert_nonnull (bolt_log_level_to_priority (G_LOG_LEVEL_INFO));
g_assert_nonnull (bolt_log_level_to_priority (G_LOG_LEVEL_DEBUG));
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment