mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-04 01:16:03 +00:00
test: test invalid config keys
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
576fb366f8
commit
646e6c8b46
@ -600,6 +600,12 @@ int main(int argc, char *argv[])
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (c->set_config_item(c, "lxc.notaconfigkey", "invalid")) {
|
||||
fprintf(stderr, "%d: Managed to set \"lxc.notaconfigkey\"\n", __LINE__);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
printf("All get_item tests passed\n");
|
||||
fret = EXIT_SUCCESS;
|
||||
|
||||
|
@ -778,6 +778,11 @@ int main(int argc, char *argv[])
|
||||
goto non_test_error;
|
||||
}
|
||||
|
||||
if (c->set_config_item(c, "lxc.notaconfigkey", "invalid")) {
|
||||
lxc_error("%s\n", "Managed to set to set invalid config item \"lxc.notaconfigkey\" to \"invalid\"");
|
||||
return -1;
|
||||
}
|
||||
|
||||
fret = EXIT_SUCCESS;
|
||||
|
||||
non_test_error:
|
||||
|
Loading…
Reference in New Issue
Block a user