From: Yu Watanabe Date: Fri, 29 Aug 2025 23:08:04 +0000 (+0900) Subject: test: reenable test for cg_get_keyed_attribute() X-Git-Tag: v259-rc1~535^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=194e05642f74993d7be80724f2560f1a698931ec;p=thirdparty%2Fsystemd.git test: reenable test for cg_get_keyed_attribute() The test case was mistakenly disabled by a412a1b92ab234a57c646f6779471772b2c355ec. Co-authored-by: Natalie Vock --- diff --git a/src/test/test-cgroup-util.c b/src/test/test-cgroup-util.c index 7c8cfaaa119..552e9a5d280 100644 --- a/src/test/test-cgroup-util.c +++ b/src/test/test-cgroup-util.c @@ -432,7 +432,7 @@ TEST(cg_get_keyed_attribute) { int r; r = cg_get_keyed_attribute("cpu", "/init.scope", "no_such_file", STRV_MAKE("no_such_attr"), &val); - if (IN_SET(r, -ENOMEDIUM, -ENOENT) || ERRNO_IS_PRIVILEGE(r)) { + if (r == -ENOMEDIUM || ERRNO_IS_PRIVILEGE(r)) { log_info_errno(r, "Skipping most of %s, /sys/fs/cgroup not accessible: %m", __func__); return; }