aboutsummaryrefslogtreecommitdiff
path: root/plugins/tests
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/tests')
-rw-r--r--plugins/tests/test-keyfiles.c23
-rw-r--r--plugins/tests/test-udev-rules.c23
2 files changed, 2 insertions, 44 deletions
diff --git a/plugins/tests/test-keyfiles.c b/plugins/tests/test-keyfiles.c
index 173893be..d528cac9 100644
--- a/plugins/tests/test-keyfiles.c
+++ b/plugins/tests/test-keyfiles.c
@@ -23,7 +23,7 @@
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
-#include "mm-log.h"
+#include "mm-log-test.h"
/************************************************************/
@@ -64,27 +64,6 @@ test_foxconn_t77w968 (void)
/************************************************************/
-void
-_mm_log (gpointer obj,
- const char *loc,
- const char *func,
- guint32 level,
- const char *fmt,
- ...)
-{
- 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);
-}
-
int main (int argc, char **argv)
{
setlocale (LC_ALL, "");
diff --git a/plugins/tests/test-udev-rules.c b/plugins/tests/test-udev-rules.c
index e12f07ac..36cc4120 100644
--- a/plugins/tests/test-udev-rules.c
+++ b/plugins/tests/test-udev-rules.c
@@ -25,7 +25,7 @@
#include <libmm-glib.h>
#include "mm-kernel-device-generic-rules.h"
-#include "mm-log.h"
+#include "mm-log-test.h"
/************************************************************/
@@ -162,27 +162,6 @@ test_fibocom (void)
/************************************************************/
-void
-_mm_log (gpointer obj,
- const char *loc,
- const char *func,
- guint32 level,
- const char *fmt,
- ...)
-{
- 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);
-}
-
int main (int argc, char **argv)
{
setlocale (LC_ALL, "");