Skip to content

Commit 68c2614

Browse files
committed
tests: config: check --addr-flags
This parameter was not validated before. Use all possible flags (even if they are not individually checked). Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
1 parent 2e9ed47 commit 68c2614

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test-configuration.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,17 @@ static void test_load_plugins(void const *test_data)
108108
RUN_CONFIG(argv);
109109
}
110110

111+
static void test_addr_flags(void const *test_data)
112+
{
113+
(void) test_data;
114+
115+
static char *argv[] =
116+
{ TEST_PROGRAM_NAME, "--addr-flags",
117+
"signal,subflow,fullmesh,backup,laminar" };
118+
119+
RUN_CONFIG(argv);
120+
}
121+
111122
static void test_multi_arg(void const *test_data)
112123
{
113124
(void) test_data;
@@ -176,6 +187,7 @@ int main(int argc, char *argv[])
176187
l_test_add("plugin dir", test_plugin_dir, NULL);
177188
l_test_add("path manager", test_path_manager, NULL);
178189
l_test_add("load plugins", test_load_plugins, NULL);
190+
l_test_add("addr flags", test_addr_flags, NULL);
179191
l_test_add("multi arg", test_multi_arg, NULL);
180192
l_test_add("config file", test_config_file, NULL);
181193
l_test_add("debug", test_debug, NULL);

0 commit comments

Comments
 (0)