tests: add another test for garbage config key

where a valid key has trailing garbage at the end before the "=". Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent f44eb244
......@@ -887,6 +887,11 @@ int main(int argc, char *argv[])
return -1;
}
if (c->set_config_item(c, "lxc.hook.versionasdfsadfsadf", "1")) {
lxc_error("%s\n", "Managed to set to set invalid config item \"lxc.hook.versionasdfsadfsadf\" to \"2\"");
goto non_test_error;
}
fret = EXIT_SUCCESS;
non_test_error:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment