diff options
Diffstat (limited to 'src/test/logging/logging_tests.c')
-rw-r--r-- | src/test/logging/logging_tests.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/logging/logging_tests.c b/src/test/logging/logging_tests.c index ee00d8e..2d4ced9 100644 --- a/src/test/logging/logging_tests.c +++ b/src/test/logging/logging_tests.c @@ -58,7 +58,13 @@ mu_test test_log_debug() struct honey_log_info info; info.debug_out = stream; + info.log_level = FATAL; + + honey_debug_(info, "hello, world!"); + fflush(stream); + mu_assert_streq(buffer, ""); + info.log_level = DEBUG; honey_debug_(info, "hello, world!"); fclose(stream); mu_assert_streq(buffer, "[DEBUG] hello, world!"); |