diff options
Diffstat (limited to 'src/tests/hnb-test.c')
-rw-r--r-- | src/tests/hnb-test.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/tests/hnb-test.c b/src/tests/hnb-test.c index 4d042e8..cd07d7c 100644 --- a/src/tests/hnb-test.c +++ b/src/tests/hnb-test.c @@ -52,11 +52,11 @@ #include "rua_helper.h" #include "asn1helpers.h" #include "iu_helpers.h" +#include "test_common.h" #include "ranap_msg_factory.h" static void *tall_hnb_ctx; -void *talloc_asn1_ctx; struct hnb_test g_hnb_test = { .gw_port = IUH_DEFAULT_SCTP_PORT, @@ -64,7 +64,6 @@ struct hnb_test g_hnb_test = { struct msgb *rua_new_udt(struct msgb *inmsg); - static int hnb_test_ue_de_register_tx(struct hnb_test *hnb_test) { struct msgb *msg; @@ -563,12 +562,9 @@ int main(int argc, char **argv) { int rc; - tall_hnb_ctx = talloc_named_const(NULL, 0, "hnb_context"); - talloc_asn1_ctx = talloc_named_const(NULL, 0, "asn1_context"); + test_common_init(); - rc = osmo_init_logging(&hnb_test_log_info); - if (rc < 0) - exit(1); + tall_hnb_ctx = talloc_named_const(NULL, 0, "hnb_context"); vty_init(&vty_info); hnbtest_vty_init(); |