mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
add systemd controller; add more tests; update blkio stat for v2
Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
@@ -5,6 +5,11 @@ use cgroups::{Cgroup, DeviceResource, Hierarchy};
|
||||
|
||||
#[test]
|
||||
fn test_devices_parsing() {
|
||||
// no only v2
|
||||
if cgroups::hierarchies::is_cgroup2_unified_mode() {
|
||||
return
|
||||
}
|
||||
|
||||
let h = cgroups::hierarchies::auto();
|
||||
let h = Box::new(&*h);
|
||||
let cg = Cgroup::new(h, String::from("test_devices_parsing"));
|
||||
|
||||
Reference in New Issue
Block a user