pid1: do not initialize join_controllers by default

We're moving towards unified cgroup hierarchy where this is not necessary.
This makes main.c a bit simpler.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-02-19 15:18:54 +01:00
parent 9ecdba8cb7
commit 56c8d7444a
4 changed files with 30 additions and 37 deletions
+3 -1
View File
@@ -244,7 +244,9 @@ static void test_config_parse_join_controllers(void) {
/* Test special case of no mounted controllers */
r = config_parse_join_controllers(NULL, "example.conf", 12, "Section", 10, "JoinControllers", 0, "", &c, NULL);
assert_se(r == 0);
assert_se(c == NULL);
assert_se(c);
assert_se(strv_equal(c[0], STRV_MAKE_EMPTY));
assert_se(c[1] == NULL);
/* Test merging of overlapping lists */
r = config_parse_join_controllers(NULL, "example.conf", 13, "Section", 10, "JoinControllers", 0, "a,b b,c", &c, NULL);