diff options
-rw-r--r-- | src/test/test-cgroup-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test-cgroup-util.c b/src/test/test-cgroup-util.c index 16bf968340..4d802d483a 100644 --- a/src/test/test-cgroup-util.c +++ b/src/test/test-cgroup-util.c @@ -193,8 +193,9 @@ static void test_escape(void) { test_escape_one(".foobar", "_.foobar"); test_escape_one("foobar.service", "foobar.service"); test_escape_one("cgroup.service", "_cgroup.service"); - test_escape_one("cpu.service", "_cpu.service"); test_escape_one("tasks", "_tasks"); + if (access("/sys/fs/cgroup/cpu", F_OK) == 0) + test_escape_one("cpu.service", "_cpu.service"); test_escape_one("_foobar", "__foobar"); test_escape_one("", "_"); test_escape_one("_", "__"); |