diff options
author | sanine <sanine.not@pm.me> | 2021-09-23 23:45:47 -0500 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2021-09-23 23:45:47 -0500 |
commit | 921f1a46bbccbdf9dcadbd7017ec0c575d2bed1f (patch) | |
tree | 22d09dfa53930e1f4bf266f7d24376c6f453af19 /src/test/logging/logging_tests.c | |
parent | f9f790c5cd3de6cd82ebf08c1f1695d411dd4a60 (diff) |
fix debug required logging level
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!"); |