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.
This commit is contained in:
@@ -699,7 +699,7 @@ common_test_slcc_urc (const gchar *urc,
|
||||
g_assert_no_error (error);
|
||||
g_assert (result);
|
||||
|
||||
g_print ("found %u calls\n", g_list_length (call_info_list));
|
||||
g_debug ("found %u calls", g_list_length (call_info_list));
|
||||
|
||||
if (expected_call_info_list) {
|
||||
g_assert (call_info_list);
|
||||
@@ -712,7 +712,7 @@ common_test_slcc_urc (const gchar *urc,
|
||||
gboolean found = FALSE;
|
||||
guint i;
|
||||
|
||||
g_print ("call at index %u: direction %s, state %s, number %s\n",
|
||||
g_debug ("call at index %u: direction %s, state %s, number %s",
|
||||
call_info->index,
|
||||
mm_call_direction_get_string (call_info->direction),
|
||||
mm_call_state_get_string (call_info->state),
|
||||
|
||||
@@ -26,12 +26,6 @@
|
||||
#include "mm-modem-helpers-thuraya.h"
|
||||
#include "mm-log.h"
|
||||
|
||||
#if defined ENABLE_TEST_MESSAGE_TRACES
|
||||
#define trace(message, ...) g_print (message, ##__VA_ARGS__)
|
||||
#else
|
||||
#define trace(...)
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Test CPMS response */
|
||||
|
||||
@@ -62,7 +56,7 @@ test_cpms_response_thuraya (void *f, gpointer d)
|
||||
GArray *mem2 = NULL;
|
||||
GArray *mem3 = NULL;
|
||||
|
||||
trace ("\nTesting thuraya +CPMS=? response...\n");
|
||||
g_debug ("Testing thuraya +CPMS=? response...");
|
||||
|
||||
g_assert (mm_thuraya_3gpp_parse_cpms_test_response (reply, &mem1, &mem2, &mem3));
|
||||
g_assert_cmpuint (mem1->len, ==, 5);
|
||||
|
||||
Reference in New Issue
Block a user