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-4.0.7~114 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90accff309a8e83837242fa09ae2723d9bd44289;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 a59f655a2..7671f49bd 100644 --- a/src/tests/parse_config_file.c +++ b/src/tests/parse_config_file.c @@ -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: