diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-30 23:04:04 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-30 23:20:03 +0200 |
commit | 08b3828995d4fcfb32dbba6a92836bf38945d03a (patch) | |
tree | 8099c7f7fb1dd626c6a42ca4524531af5dc1fe99 /tests/smpp | |
parent | 053e27528cf4da1f96bd5bf78c6982b73b790100 (diff) |
use osmo_init_logging2() with proper talloc ctx
Since the logging allocations now also show up in the root context report, some
tests need adjusted talloc checks.
In msc_vlr_tests, also output the number of talloc blocks before tests are
started to show that the number didn't change after the tests.
Change-Id: Iae07ae60230c7bab28e52b5df97fa3844778158e
Diffstat (limited to 'tests/smpp')
-rw-r--r-- | tests/smpp/smpp_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/smpp/smpp_test.c b/tests/smpp/smpp_test.c index 4a3af495d..1abb63b01 100644 --- a/tests/smpp/smpp_test.c +++ b/tests/smpp/smpp_test.c @@ -77,7 +77,8 @@ const struct log_info log_info = { int main(int argc, char **argv) { - osmo_init_logging(&log_info); + void *ctx = talloc_named_const(NULL, 0, "smpp_test"); + osmo_init_logging2(ctx, &log_info); log_set_use_color(osmo_stderr_target, 0); log_set_print_filename(osmo_stderr_target, 0); |