mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-04 11:05:10 +00:00
test: add lxc_config_item_is_supported() tests
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
1246142888
commit
add40e6270
@ -391,6 +391,17 @@ int main(int argc, char *argv[])
|
||||
fprintf(stderr, "%d: failed clearing lxc.hook\n", __LINE__);
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!lxc_config_item_is_supported("lxc.arch")) {
|
||||
fprintf(stderr, "%d: failed to report \"lxc.arch\" as supported configuration item\n", __LINE__);
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (lxc_config_item_is_supported("lxc.nonsense")) {
|
||||
fprintf(stderr, "%d: failed to detect \"lxc.nonsense\" as unsupported configuration item\n", __LINE__);
|
||||
goto out;
|
||||
}
|
||||
|
||||
printf("All get_item tests passed\n");
|
||||
ret = EXIT_SUCCESS;
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user