(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestNamedPath(t *testing.T) { |
| 29 | n := NewNamed("/sys/fs/cgroup", "systemd") |
| 30 | path := n.Path("/test") |
| 31 | if expected := "/sys/fs/cgroup/systemd/test"; path != expected { |
| 32 | t.Fatalf("expected %q but received %q from named cgroup", expected, path) |
| 33 | } |
| 34 | } |