aboutsummaryrefslogtreecommitdiff
path: root/src/tests/test-charsets.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2019-10-14 14:54:59 +0200
committerAleksander Morgado <aleksander@aleksander.es>2019-10-14 15:30:03 +0200
commit3b18d21ba5d276f8fa4d22a91faaa71e62dc3c28 (patch)
tree92cd10b3b95a509cf0342fbf26fb77a84d8def81 /src/tests/test-charsets.c
parentcc4e7f6cfdd4b07f578f84d6994ce38ee811b288 (diff)
tests: avoid g_print() and use g_debug() instead
The debug-level logs won't be printed e.g. during 'make check', but will be included when running the tester manually.
Diffstat (limited to 'src/tests/test-charsets.c')
-rw-r--r--src/tests/test-charsets.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/tests/test-charsets.c b/src/tests/test-charsets.c
index e7b47da0..79fa2a2b 100644
--- a/src/tests/test-charsets.c
+++ b/src/tests/test-charsets.c
@@ -20,12 +20,6 @@
#include "mm-modem-helpers.h"
#include "mm-log.h"
-#if defined ENABLE_TEST_MESSAGE_TRACES
-#define trace(message, ...) g_print (message, ##__VA_ARGS__)
-#else
-#define trace(...)
-#endif
-
static void
test_gsm7_default_chars (void)
{
@@ -400,7 +394,7 @@ test_charset_can_covert_to (void)
guint i;
for (i = 0; i < G_N_ELEMENTS (charset_can_convert_to_test); i++) {
- trace ("testing charset conversion: '%s'\n", charset_can_convert_to_test[i].utf8);
+ g_debug ("testing charset conversion: '%s'", charset_can_convert_to_test[i].utf8);
g_assert (mm_charset_can_convert_to (charset_can_convert_to_test[i].utf8, MM_MODEM_CHARSET_GSM) == charset_can_convert_to_test[i].to_gsm);
g_assert (mm_charset_can_convert_to (charset_can_convert_to_test[i].utf8, MM_MODEM_CHARSET_IRA) == charset_can_convert_to_test[i].to_ira);
g_assert (mm_charset_can_convert_to (charset_can_convert_to_test[i].utf8, MM_MODEM_CHARSET_8859_1) == charset_can_convert_to_test[i].to_8859_1);