aboutsummaryrefslogtreecommitdiffstats
path: root/tests/sms
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sms')
-rw-r--r--tests/sms/sms_test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/sms/sms_test.c b/tests/sms/sms_test.c
index 755b3213..cdd41585 100644
--- a/tests/sms/sms_test.c
+++ b/tests/sms/sms_test.c
@@ -31,6 +31,11 @@
#include <osmocom/core/msgb.h>
#include <osmocom/core/utils.h>
+#include <osmocom/core/logging.h>
+#include <osmocom/core/application.h>
+
+struct log_info fake_log_info = {};
+
struct test_case {
const uint8_t *input;
const uint16_t input_length;
@@ -278,6 +283,9 @@ int main(int argc, char** argv)
int nchars;
char result[256];
+ /* Fake logging. */
+ osmo_init_logging(&fake_log_info);
+
/* test 7-bit encoding */
for (i = 0; i < ARRAY_SIZE(test_encode); ++i) {
/* Test legacy function (return value only) */