From: Christian Brauner Date: Mon, 29 Mar 2021 10:34:33 +0000 (+0200) Subject: tests: add another test for garbage config key X-Git-Tag: lxc-5.0.0~232^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d676c005c1a53086af423ea35631b46d1854f41;p=thirdparty%2Flxc.git tests: add another test for garbage config key where a valid key has trailing garbage at the end before the "=". Signed-off-by: Christian Brauner --- diff --git a/src/tests/parse_config_file.c b/src/tests/parse_config_file.c index 3442f118b..8b5b1b0d2 100644 --- a/src/tests/parse_config_file.c +++ b/src/tests/parse_config_file.c @@ -902,6 +902,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: