summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-30 19:42:48 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-05 15:06:33 -0700
commite66e5b612a9e5921d79a6aedab4983e33dff8cb1 (patch)
tree87085e08c4c4b06772f001d871afdc643cf0d3d6 /src/test
parent32fea77178ff9aaa09a7b043965fce854fdf8874 (diff)
downloadsystemd-e66e5b612a9e5921d79a6aedab4983e33dff8cb1.tar.gz
systemd-e66e5b612a9e5921d79a6aedab4983e33dff8cb1.tar.bz2
systemd-e66e5b612a9e5921d79a6aedab4983e33dff8cb1.zip
cgroup-util: be more strict when processing slice unit names
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-cgroup-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-cgroup-util.c b/src/test/test-cgroup-util.c
index efe99cb34b..4a89f64518 100644
--- a/src/test/test-cgroup-util.c
+++ b/src/test/test-cgroup-util.c
@@ -274,7 +274,7 @@ static void test_slice_to_path(void) {
test_slice_to_path_one("-foo-.slice", NULL, -EINVAL);
test_slice_to_path_one("-foo.slice", NULL, -EINVAL);
test_slice_to_path_one("foo-.slice", NULL, -EINVAL);
- test_slice_to_path_one("foo--bar.slice", "foo.slice/foo-.slice/foo--bar.slice", 0);
+ test_slice_to_path_one("foo--bar.slice", NULL, -EINVAL);
test_slice_to_path_one("foo.slice/foo--bar.slice", NULL, -EINVAL);
test_slice_to_path_one("a-b.slice", "a.slice/a-b.slice", 0);
test_slice_to_path_one("a-b-c-d-e.slice", "a.slice/a-b.slice/a-b-c.slice/a-b-c-d.slice/a-b-c-d-e.slice", 0);