]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: reenable test for cg_get_keyed_attribute()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 29 Aug 2025 23:08:04 +0000 (08:08 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 17 Sep 2025 13:20:42 +0000 (22:20 +0900)
The test case was mistakenly disabled by
a412a1b92ab234a57c646f6779471772b2c355ec.

Co-authored-by: Natalie Vock <natalie.vock@gmx.de>
src/test/test-cgroup-util.c

index 7c8cfaaa119a0ffd3cc04528a73e507d77630172..552e9a5d280978a37fac85d6dd43bdb180006fe1 100644 (file)
@@ -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;
         }