summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2018-06-08 13:39:36 +0200
committerGitHub <noreply@github.com>2018-06-08 13:39:36 +0200
commit9eafc8abd74a4d8144c764e0361dbb2a51da91c9 (patch)
treed9f741613b32425b0204c32d08492a4267b5d4a9 /tests
parentMerge pull request #2347 from gromit1811/pim-connected-nexthop-fix (diff)
parentdoc: add docs on | actions, find command (diff)
downloadfrr-9eafc8abd74a4d8144c764e0361dbb2a51da91c9.tar.xz
frr-9eafc8abd74a4d8144c764e0361dbb2a51da91c9.zip
Merge pull request #2298 from qlyoung/pipe-actions-vtysh
*: add support for `|` actions
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/cli/test_commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/cli/test_commands.c b/tests/lib/cli/test_commands.c
index 48dd99d28..2a8d26317 100644
--- a/tests/lib/cli/test_commands.c
+++ b/tests/lib/cli/test_commands.c
@@ -130,7 +130,7 @@ static void test_load(void)
line[strlen(line) - 1] = '\0';
if (line[0] == '#')
continue;
- vector_set(test_cmds, XSTRDUP(MTYPE_STRVEC, line));
+ vector_set(test_cmds, XSTRDUP(MTYPE_TMP, line));
}
}
@@ -181,7 +181,7 @@ static void test_terminate(void)
vty_terminate();
for (i = 0; i < vector_active(test_cmds); i++)
- XFREE(MTYPE_STRVEC, vector_slot(test_cmds, i));
+ XFREE(MTYPE_TMP, vector_slot(test_cmds, i));
vector_free(test_cmds);
cmd_terminate();
}