test: add lxc_config_item_is_supported() tests

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2017-05-03 12:24:39 +02:00
parent 1246142888
commit add40e6270
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -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: