From: Solar Designer Date: Thu, 10 Jul 2025 22:28:14 +0000 (+0200) Subject: [PATCH] test-cgroup: Ignore ENOENT from cg_create() X-Git-Tag: archive/raspbian/252.39-1_deb12u2+rpi1^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ae40ae0efba00a2b0afcea6cb64cd06b8c996cb3;p=systemd.git [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 --- 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; }