diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/cinterion/tests/test-modem-helpers-cinterion.c | 23 | ||||
-rw-r--r-- | plugins/huawei/tests/test-modem-helpers-huawei.c | 22 | ||||
-rw-r--r-- | plugins/icera/tests/test-modem-helpers-icera.c | 23 | ||||
-rw-r--r-- | plugins/linktop/tests/test-modem-helpers-linktop.c | 23 | ||||
-rw-r--r-- | plugins/mbm/tests/test-modem-helpers-mbm.c | 23 | ||||
-rw-r--r-- | plugins/sierra/tests/test-modem-helpers-sierra.c | 23 | ||||
-rw-r--r-- | plugins/simtech/tests/test-modem-helpers-simtech.c | 23 | ||||
-rw-r--r-- | plugins/telit/tests/test-mm-modem-helpers-telit.c | 23 | ||||
-rw-r--r-- | plugins/tests/test-keyfiles.c | 23 | ||||
-rw-r--r-- | plugins/tests/test-udev-rules.c | 23 | ||||
-rw-r--r-- | plugins/thuraya/tests/test-mm-modem-helpers-thuraya.c | 23 | ||||
-rw-r--r-- | plugins/ublox/tests/test-modem-helpers-ublox.c | 23 | ||||
-rw-r--r-- | plugins/xmm/tests/test-modem-helpers-xmm.c | 23 |
13 files changed, 13 insertions, 285 deletions
diff --git a/plugins/cinterion/tests/test-modem-helpers-cinterion.c b/plugins/cinterion/tests/test-modem-helpers-cinterion.c index 88e0f74c..0baeec30 100644 --- a/plugins/cinterion/tests/test-modem-helpers-cinterion.c +++ b/plugins/cinterion/tests/test-modem-helpers-cinterion.c @@ -21,7 +21,7 @@ #define _LIBMM_INSIDE_MM #include <libmm-glib.h> -#include "mm-log.h" +#include "mm-log-test.h" #include "mm-modem-helpers.h" #include "mm-modem-helpers-cinterion.h" @@ -858,27 +858,6 @@ test_ctzu_urc_full (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/huawei/tests/test-modem-helpers-huawei.c b/plugins/huawei/tests/test-modem-helpers-huawei.c index 18ac85a5..1aa50c9e 100644 --- a/plugins/huawei/tests/test-modem-helpers-huawei.c +++ b/plugins/huawei/tests/test-modem-helpers-huawei.c @@ -22,6 +22,7 @@ #define _LIBMM_INSIDE_MM #include <libmm-glib.h> +#include "mm-log-test.h" #include "mm-log-object.h" #include "mm-modem-helpers.h" #include "mm-modem-helpers-huawei.h" @@ -1248,27 +1249,6 @@ test_hcsq (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/icera/tests/test-modem-helpers-icera.c b/plugins/icera/tests/test-modem-helpers-icera.c index ef9d62cc..518e9afd 100644 --- a/plugins/icera/tests/test-modem-helpers-icera.c +++ b/plugins/icera/tests/test-modem-helpers-icera.c @@ -24,7 +24,7 @@ #define _LIBMM_INSIDE_MM #include <libmm-glib.h> -#include "mm-log.h" +#include "mm-log-test.h" #include "mm-modem-helpers.h" #include "mm-modem-helpers-icera.h" @@ -175,27 +175,6 @@ test_ipdpaddr (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/linktop/tests/test-modem-helpers-linktop.c b/plugins/linktop/tests/test-modem-helpers-linktop.c index 396abaae..07aa8378 100644 --- a/plugins/linktop/tests/test-modem-helpers-linktop.c +++ b/plugins/linktop/tests/test-modem-helpers-linktop.c @@ -21,7 +21,7 @@ #define _LIBMM_INSIDE_MM #include <libmm-glib.h> -#include "mm-log.h" +#include "mm-log-test.h" #include "mm-modem-helpers.h" #include "mm-modem-helpers-linktop.h" @@ -59,27 +59,6 @@ test_cfun_query_current_modes (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/mbm/tests/test-modem-helpers-mbm.c b/plugins/mbm/tests/test-modem-helpers-mbm.c index da33522c..4169140a 100644 --- a/plugins/mbm/tests/test-modem-helpers-mbm.c +++ b/plugins/mbm/tests/test-modem-helpers-mbm.c @@ -24,7 +24,7 @@ #define _LIBMM_INSIDE_MM #include <libmm-glib.h> -#include "mm-log.h" +#include "mm-log-test.h" #include "mm-modem-helpers.h" #include "mm-modem-helpers-mbm.h" @@ -253,27 +253,6 @@ test_cfun_query_current_modes (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/sierra/tests/test-modem-helpers-sierra.c b/plugins/sierra/tests/test-modem-helpers-sierra.c index ad25ec9b..b0c66496 100644 --- a/plugins/sierra/tests/test-modem-helpers-sierra.c +++ b/plugins/sierra/tests/test-modem-helpers-sierra.c @@ -22,7 +22,7 @@ #define _LIBMM_INSIDE_MM #include <libmm-glib.h> -#include "mm-log.h" +#include "mm-log-test.h" #include "mm-modem-helpers.h" #include "mm-modem-helpers-sierra.h" @@ -115,27 +115,6 @@ test_scact_read_response_multiple (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/simtech/tests/test-modem-helpers-simtech.c b/plugins/simtech/tests/test-modem-helpers-simtech.c index f1109534..d5d774f2 100644 --- a/plugins/simtech/tests/test-modem-helpers-simtech.c +++ b/plugins/simtech/tests/test-modem-helpers-simtech.c @@ -21,7 +21,7 @@ #define _LIBMM_INSIDE_MM #include <libmm-glib.h> -#include "mm-log.h" +#include "mm-log-test.h" #include "mm-modem-helpers.h" #include "mm-modem-helpers-simtech.h" @@ -317,27 +317,6 @@ test_rxdtmf_urc_one_cr (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/telit/tests/test-mm-modem-helpers-telit.c b/plugins/telit/tests/test-mm-modem-helpers-telit.c index b6083816..251abd1e 100644 --- a/plugins/telit/tests/test-mm-modem-helpers-telit.c +++ b/plugins/telit/tests/test-mm-modem-helpers-telit.c @@ -23,7 +23,7 @@ #define _LIBMM_INSIDE_MM #include <libmm-glib.h> -#include "mm-log.h" +#include "mm-log-test.h" #include "mm-modem-helpers.h" #include "mm-modem-helpers-telit.h" @@ -572,27 +572,6 @@ test_telit_parse_qss_query (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-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, ""); diff --git a/plugins/thuraya/tests/test-mm-modem-helpers-thuraya.c b/plugins/thuraya/tests/test-mm-modem-helpers-thuraya.c index c3c76f09..bdc073d0 100644 --- a/plugins/thuraya/tests/test-mm-modem-helpers-thuraya.c +++ b/plugins/thuraya/tests/test-mm-modem-helpers-thuraya.c @@ -24,7 +24,7 @@ #include "mm-modem-helpers.h" #include "mm-modem-helpers-thuraya.h" -#include "mm-log.h" +#include "mm-log-test.h" /*****************************************************************************/ /* Test CPMS response */ @@ -87,27 +87,6 @@ test_cpms_response_thuraya (void *f, gpointer d) /*****************************************************************************/ -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); -} - #define TESTCASE(t, d) g_test_create_case (#t, 0, d, NULL, (GTestFixtureFunc) t, NULL) int main (int argc, char **argv) diff --git a/plugins/ublox/tests/test-modem-helpers-ublox.c b/plugins/ublox/tests/test-modem-helpers-ublox.c index b2999ee8..2d662877 100644 --- a/plugins/ublox/tests/test-modem-helpers-ublox.c +++ b/plugins/ublox/tests/test-modem-helpers-ublox.c @@ -22,7 +22,7 @@ #define _LIBMM_INSIDE_MM #include <libmm-glib.h> -#include "mm-log.h" +#include "mm-log-test.h" #include "mm-modem-helpers.h" #include "mm-modem-helpers-ublox.h" @@ -979,27 +979,6 @@ test_ugcntrd_response (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/xmm/tests/test-modem-helpers-xmm.c b/plugins/xmm/tests/test-modem-helpers-xmm.c index 39aa8ccc..e40ffcab 100644 --- a/plugins/xmm/tests/test-modem-helpers-xmm.c +++ b/plugins/xmm/tests/test-modem-helpers-xmm.c @@ -22,7 +22,7 @@ #define _LIBMM_INSIDE_MM #include <libmm-glib.h> -#include "mm-log.h" +#include "mm-log-test.h" #include "mm-modem-helpers.h" #include "mm-modem-helpers-xmm.h" @@ -754,27 +754,6 @@ test_xlcsslp_queries (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, ""); |