test: print all logs in SMS part tests

They are extremely helpful for debugging issues.
This commit is contained in:
Aleksander Morgado
2012-09-11 14:00:24 +02:00
parent f7caa7c9bc
commit 6c5bead94b

View File

@@ -17,6 +17,8 @@
#include <glib.h>
#include <glib-object.h>
#include <string.h>
#include <stdio.h>
#include <locale.h>
#include "mm-sms-part.h"
#include "mm-utils.h"
@@ -840,10 +842,20 @@ _mm_log (const char *loc,
...)
{
/* Dummy log function */
va_list args;
gchar *msg;
va_start (args, fmt);
msg = g_strdup_vprintf (fmt, args);
va_end (args);
g_print ("%s\n", msg);
g_free (msg);
}
int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
g_type_init ();
g_test_init (&argc, &argv, NULL);