test: reenable test for cg_get_keyed_attribute()
The test case was mistakenly disabled by
a412a1b92a.
Co-authored-by: Natalie Vock <natalie.vock@gmx.de>
This commit is contained in:
co-authored by
Natalie Vock
parent
6a616e62ad
commit
194e05642f
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user