tests: fix two false negatives in parse_config_file()

parent 01e3ca9b
...@@ -862,15 +862,13 @@ int main(int argc, char *argv[]) ...@@ -862,15 +862,13 @@ int main(int argc, char *argv[])
goto non_test_error; goto non_test_error;
} }
ret = set_get_compare_clear_save_load(c, "lxc.hook.version", "2", tmpf, true); if (c->set_config_item(c, "lxc.hook.version", "2")) {
if (ret == 0) { lxc_error("%s\n", "Managed to set to set invalid config item \"lxc.hook.version\" to \"2\"");
lxc_error("%s\n", "lxc.hook.version");
goto non_test_error; goto non_test_error;
} }
ret = set_get_compare_clear_save_load(c, "lxc.monitor.signal.pdeath", "SIGKILL", tmpf, true); if (!c->set_config_item(c, "lxc.monitor.signal.pdeath", "SIGKILL")) {
if (ret == 0) { lxc_error("%s\n", "Failed to set to set invalid config item \"lxc.monitor.signal.pdeath\" to \"SIGKILL\"");
lxc_error("%s\n", "lxc.hook.version");
goto non_test_error; goto non_test_error;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment