From 921f1a46bbccbdf9dcadbd7017ec0c575d2bed1f Mon Sep 17 00:00:00 2001 From: sanine Date: Thu, 23 Sep 2021 23:45:47 -0500 Subject: fix debug required logging level --- src/test/logging/logging_tests.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/test/logging/logging_tests.c') 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!"); -- cgit v1.2.1