goto non_test_error;
}
+ if (set_get_compare_clear_save_load(c, "lxc.autodev.tmpfs.size", "1", tmpf, true) < 0) {
+ lxc_error("%s\n", "lxc.autodev.tmpfs.size");
+ goto non_test_error;
+ }
+
if (set_get_compare_clear_save_load(c, "lxc.autodev", "1", tmpf, true) <
0) {
lxc_error("%s\n", "lxc.autodev");
return -1;
}
+ if (set_get_compare_clear_save_load_network(c, "lxc.net.0.veth.vlan.id", "none", tmpf, false, "veth")) {
+ lxc_error("%s\n", "lxc.net.0.veth.vlan.id");
+ return -1;
+ }
+
+ if (set_get_compare_clear_save_load_network(c, "lxc.net.0.veth.vlan.id", "2", tmpf, true, "veth")) {
+ lxc_error("%s\n", "lxc.net.0.veth.vlan.id");
+ return -1;
+ }
+
+ if (set_get_compare_clear_save_load_network(c, "lxc.net.0.veth.vlan.tagged.id", "2", tmpf, true, "veth")) {
+ lxc_error("%s\n", "lxc.net.0.veth.vlan.tagged.id");
+ return -1;
+ }
+
if (set_get_compare_clear_save_load(c, "lxc.net.0.script.up", "/some/up/path", tmpf, true)) {
lxc_error("%s\n", "lxc.net.0.script.up");
goto non_test_error;
goto non_test_error;
}
- ret = set_get_compare_clear_save_load(c, "lxc.hook.version", "2", tmpf, true);
- if (ret == 0) {
- lxc_error("%s\n", "lxc.hook.version");
+ if (c->set_config_item(c, "lxc.hook.version", "2")) {
+ lxc_error("%s\n", "Managed to set to set invalid config item \"lxc.hook.version\" to \"2\"");
goto non_test_error;
}
- ret = set_get_compare_clear_save_load(c, "lxc.monitor.signal.pdeath", "SIGKILL", tmpf, true);
- if (ret == 0) {
- lxc_error("%s\n", "lxc.hook.version");
+ if (!c->set_config_item(c, "lxc.monitor.signal.pdeath", "SIGKILL")) {
+ lxc_error("%s\n", "Failed to set to set invalid config item \"lxc.monitor.signal.pdeath\" to \"SIGKILL\"");
goto non_test_error;
}
return -1;
}
+ if (c->set_config_item(c, "lxc.log.file=", "./")) {
+ lxc_error("%s\n", "Managed to set to set invalid config item \"lxc.log.file\" to \"./\"");
+ 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: