libcontainer: cgroups: add tests for pids.max in PidsStats

Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
Aleksa Sarai 2016-03-13 14:16:38 +11:00
parent 2b1e086f62
commit 64286b443d
1 changed files with 4 additions and 0 deletions

View File

@ -80,4 +80,8 @@ func TestPidsStats(t *testing.T) {
if stats.PidsStats.Current != 1337 {
t.Fatalf("Expected %d, got %d for pids.current", 1337, stats.PidsStats.Current)
}
if stats.PidsStats.Max != maxLimited {
t.Fatalf("Expected %d, got %d for pids.max", maxLimited, stats.PidsStats.Max)
}
}