tests: skip tests when cg_pid_get_path fails (#7033)

v2:
- cast the fstype_t type to ull, because it varies between arches.
  Making it long long should be on the safe side.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-10-10 20:55:20 +02:00
committed by GitHub
parent b74023db06
commit 651d47d14b
11 changed files with 59 additions and 18 deletions
+4 -1
View File
@@ -2456,8 +2456,11 @@ static int cg_unified_update(void) {
return -ENOMEDIUM;
unified_cache = CGROUP_UNIFIED_NONE;
}
} else
} else {
log_debug("Unknown filesystem type %llx mounted on /sys/fs/cgroup.",
(unsigned long long) fs.f_type);
return -ENOMEDIUM;
}
return 0;
}