1
0
mirror of https://github.com/rancher/os.git synced 2025-07-06 19:38:37 +00:00
os/vendor/github.com/opencontainers/runc/libcontainer/cgroups/cgroups_test.go
2015-12-07 18:17:57 +05:00

19 lines
236 B
Go

// +build linux
package cgroups
import (
"testing"
)
func TestParseCgroups(t *testing.T) {
cgroups, err := ParseCgroupFile("/proc/self/cgroup")
if err != nil {
t.Fatal(err)
}
if _, ok := cgroups["cpu"]; !ok {
t.Fail()
}
}