summaryrefslogtreecommitdiff
path: root/test/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/main.c')
-rw-r--r--test/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/main.c b/test/main.c
index 42e381e..db99328 100644
--- a/test/main.c
+++ b/test/main.c
@@ -27,6 +27,7 @@ static const struct test tests[] = {
TEST(test_cmd),
TEST(test_cplusplus),
TEST(test_mos),
+ TEST(test_network),
TEST(test_ua_alloc),
TEST(test_ua_register),
TEST(test_ua_register_dns),
@@ -182,6 +183,11 @@ int main(int argc, char *argv[])
err = ENOENT;
goto out;
}
+
+ err = baresip_init(config, false);
+ if (err)
+ goto out;
+
str_ncpy(config->sip.local, "127.0.0.1:0", sizeof(config->sip.local));
uag_set_exit_handler(ua_exit_handler, NULL);
@@ -228,6 +234,8 @@ int main(int argc, char *argv[])
ua_stop_all(true);
ua_close();
+ baresip_close();
+
libre_close();
tmr_debug();