summaryrefslogtreecommitdiffstats
path: root/tests/lapd
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lapd')
-rw-r--r--tests/lapd/lapd_test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lapd/lapd_test.c b/tests/lapd/lapd_test.c
index e627ba68..3f15afe2 100644
--- a/tests/lapd/lapd_test.c
+++ b/tests/lapd/lapd_test.c
@@ -29,6 +29,7 @@
#include <osmocom/gsm/rsl.h>
#include <errno.h>
+#include <talloc.h>
#include <string.h>
@@ -759,7 +760,10 @@ static void test_lapdm_desync()
int main(int argc, char **argv)
{
- osmo_init_logging(&info);
+ void *ctx = talloc_named_const(NULL, 0, "lapd_test");
+ osmo_init_logging2(ctx, &info);
+
+ msgb_talloc_ctx_init(ctx, 0);
/* Prevent the test from segfaulting */
dummy_l1_header_len = 0;