8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
18 lines
236 B
Go
18 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()
|
|
}
|
|
}
|