tests: print MM logs only on verbose test mode

Therefore, avoid needing ENABLE_TEST_MESSAGE_TRACES build symbol.
This commit is contained in:
Aleksander Morgado
2019-10-14 15:30:27 +02:00
parent 03223fe786
commit d5d0ed0b24
20 changed files with 60 additions and 76 deletions
@@ -865,17 +865,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)