summaryrefslogtreecommitdiff
path: root/tests/lib/cli/test_commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/cli/test_commands.c')
-rw-r--r--tests/lib/cli/test_commands.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/cli/test_commands.c b/tests/lib/cli/test_commands.c
index a8b42ba789..74816ece8c 100644
--- a/tests/lib/cli/test_commands.c
+++ b/tests/lib/cli/test_commands.c
@@ -142,6 +142,8 @@ static void test_init(void)
struct cmd_element *cmd;
cmd_init(1);
+ yang_init();
+ nb_init(NULL, 0);
install_node(&bgp_node, NULL);
install_node(&rip_node, NULL);
@@ -184,6 +186,8 @@ static void test_terminate(void)
XFREE(MTYPE_TMP, vector_slot(test_cmds, i));
vector_free(test_cmds);
cmd_terminate();
+ nb_terminate();
+ yang_terminate();
}
static void test_run(struct prng *prng, struct vty *vty, const char *cmd,