mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-11 10:20:18 +08:00
new-api: add the Freezer method to cgroup.Manager
Signed-off-by: Andrey Vagin <avagin@openvz.org>
This commit is contained in:

committed by
Andrew Vagin

parent
59e66b818d
commit
ba4257a146
@@ -37,6 +37,10 @@ func (m *mockCgroupManager) GetPaths() map[string]string {
|
||||
func (m *mockCgroupManager) SetPaths(map[string]string) {
|
||||
}
|
||||
|
||||
func (m *mockCgroupManager) Freeze(state cgroups.FreezerState) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func TestGetContainerPids(t *testing.T) {
|
||||
container := &linuxContainer{
|
||||
id: "myid",
|
||||
|
Reference in New Issue
Block a user