summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-13 19:28:32 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-16 11:57:48 +0100
commit9ded9cd14cc03c67291b10a5c42ce5094ba0912f (patch)
treeb905c1173fa4acb99741210907b15136c3919fdf /src/test
parent702d4e6f14b0c92f7325fcdc3650c79c2221849e (diff)
core: enable TasksMax= for all services by default, and set it to 512
Also, enable TasksAccounting= for all services by default, too. See: http://lists.freedesktop.org/archives/systemd-devel/2015-November/035006.html
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-cgroup-mask.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/test-cgroup-mask.c b/src/test/test-cgroup-mask.c
index de6c421b82..85b0d607d6 100644
--- a/src/test/test-cgroup-mask.c
+++ b/src/test/test-cgroup-mask.c
@@ -40,6 +40,16 @@ static int test_cgroup_mask(void) {
puts("manager_new: Permission denied. Skipping test.");
return EXIT_TEST_SKIP;
}
+
+ /* Turn off all kinds of default accouning, so that we can
+ * verify the masks resulting of our configuration and nothing
+ * else. */
+ m->default_cpu_accounting =
+ m->default_memory_accounting =
+ m->default_blockio_accounting =
+ m->default_tasks_accounting = false;
+ m->default_tasks_max = (uint64_t) -1;
+
assert_se(r >= 0);
assert_se(manager_startup(m, serial, fdset) >= 0);