summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2021-09-23 23:45:47 -0500
committersanine <sanine.not@pm.me>2021-09-23 23:45:47 -0500
commit921f1a46bbccbdf9dcadbd7017ec0c575d2bed1f (patch)
tree22d09dfa53930e1f4bf266f7d24376c6f453af19 /src/test
parentf9f790c5cd3de6cd82ebf08c1f1695d411dd4a60 (diff)
fix debug required logging level
Diffstat (limited to 'src/test')
-rw-r--r--src/test/logging/logging_tests.c6
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!");