diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-06-18 17:15:03 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-06-18 17:15:03 +0200 |
commit | 6a01e51a5cc2cfb89bba7b0b3adfde45ebf8faff (patch) | |
tree | 7c3a833e5de4767217ade4b5e0f0e22d2c73e792 /src/tests/test-sms-part.c | |
parent | 2a922f836d7d9a4f550ec0d789ff644cbcf5ce69 (diff) |
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"
Diffstat (limited to 'src/tests/test-sms-part.c')
-rw-r--r-- | src/tests/test-sms-part.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/test-sms-part.c b/src/tests/test-sms-part.c index d1f75886..33287e28 100644 --- a/src/tests/test-sms-part.c +++ b/src/tests/test-sms-part.c @@ -842,6 +842,7 @@ _mm_log (const char *loc, const char *fmt, ...) { +#if defined ENABLE_TEST_MESSAGE_TRACES /* Dummy log function */ va_list args; gchar *msg; @@ -851,6 +852,7 @@ _mm_log (const char *loc, va_end (args); g_print ("%s\n", msg); g_free (msg); +#endif } int main (int argc, char **argv) |