From ae40ae0efba00a2b0afcea6cb64cd06b8c996cb3 Mon Sep 17 00:00:00 2001 From: Solar Designer Date: Fri, 11 Jul 2025 00:28:14 +0200 Subject: [PATCH] [PATCH] 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 (cherry picked from commit 470da651109e2636c624ac27257a7a64472192f6) Origin: upstream, https://github.com/systemd/systemd/commit/2fb0cb64c346e464b7189328146f7d003dc0f714 Gbp-Pq: Name test-cgroup-Ignore-ENOENT-from-cg_create.patch --- src/test/test-cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test-cgroup.c b/src/test/test-cgroup.c index 8b86c60c..f77b9f6a 100644 --- a/src/test/test-cgroup.c +++ b/src/test/test-cgroup.c @@ -66,7 +66,7 @@ TEST(cg_create) { (void) cg_trim(SYSTEMD_CGROUP_CONTROLLER, test_b, /* delete_root= */ true); r = cg_create(SYSTEMD_CGROUP_CONTROLLER, test_a); - if (IN_SET(r, -EPERM, -EACCES, -EROFS)) { + if (IN_SET(r, -EPERM, -EACCES, -EROFS, -ENOENT)) { log_info_errno(r, "Skipping %s: %m", __func__); return; } -- 2.30.2