From 6a01e51a5cc2cfb89bba7b0b3adfde45ebf8faff Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 18 Jun 2013 17:15:03 +0200 Subject: tests: avoid printing in stdout by default Tests had either their own g_print()s or they would enable a _mm_log() method to get all g_debug()s from the libraries printed. In order to cleanup the result of the tests run, avoid this stdout dumps by default, and only enable them if explicitly enabled in CFLAGS, e.g.: $> ./configure CFLAGS="-DENABLE_TEST_MESSAGE_TRACES" --- src/tests/test-modem-helpers-qmi.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tests/test-modem-helpers-qmi.c') diff --git a/src/tests/test-modem-helpers-qmi.c b/src/tests/test-modem-helpers-qmi.c index 50b2ed0b..0f020f39 100644 --- a/src/tests/test-modem-helpers-qmi.c +++ b/src/tests/test-modem-helpers-qmi.c @@ -316,6 +316,7 @@ _mm_log (const char *loc, const char *fmt, ...) { +#if defined ENABLE_TEST_MESSAGE_TRACES /* Dummy log function */ va_list args; gchar *msg; @@ -325,6 +326,7 @@ _mm_log (const char *loc, va_end (args); g_print ("%s\n", msg); g_free (msg); +#endif } int main (int argc, char **argv) -- cgit v1.2.3-70-g09d2