From: Solar Designer Date: Thu, 10 Jul 2025 22:28:14 +0000 (+0200) Subject: test-cgroup: Ignore ENOENT from cg_create() X-Git-Tag: v258-rc1~103^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=470da651109e2636c624ac27257a7a64472192f6;p=thirdparty%2Fsystemd.git test-cgroup: Ignore ENOENT from cg_create() which was the only test failure building systemd-252-51.el9 in a container, also previously reported against 252-rc1 under Gentoo in #25015 --- diff --git a/src/test/test-cgroup.c b/src/test/test-cgroup.c index cb093c74b2e..77f720fd2d1 100644 --- a/src/test/test-cgroup.c +++ b/src/test/test-cgroup.c @@ -64,7 +64,7 @@ TEST(cg_create) { (void) cg_trim(test_b, /* delete_root= */ true); r = cg_create(test_a); - if (ERRNO_IS_NEG_FS_WRITE_REFUSED(r)) + if (ERRNO_IS_NEG_FS_WRITE_REFUSED(r) || r == -ENOENT) return (void) log_tests_skipped_errno(r, "%s: Failed to create cgroup %s", __func__, test_a); ASSERT_OK_EQ(r, 1);