From d5d0ed0b24eecb12f93c9b8ce65ac59fe188f60a Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 14 Oct 2019 15:09:28 +0200 Subject: tests: print MM logs only on verbose test mode Therefore, avoid needing ENABLE_TEST_MESSAGE_TRACES build symbol. --- plugins/tests/test-keyfiles.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/tests/test-keyfiles.c') diff --git a/plugins/tests/test-keyfiles.c b/plugins/tests/test-keyfiles.c index 9604643e..c1c740cb 100644 --- a/plugins/tests/test-keyfiles.c +++ b/plugins/tests/test-keyfiles.c @@ -57,17 +57,17 @@ _mm_log (const char *loc, const char *fmt, ...) { -#if defined ENABLE_TEST_MESSAGE_TRACES - /* Dummy log function */ va_list args; gchar *msg; + if (!g_test_verbose ()) + return; + va_start (args, fmt); msg = g_strdup_vprintf (fmt, args); va_end (args); g_print ("%s\n", msg); g_free (msg); -#endif } int main (int argc, char **argv) -- cgit v1.2.3-70-g09d2