Merge pull request #5245 from mxpv/oom

Fix oom tests on non Linux
This commit is contained in:
Maksym Pavlenko 2021-03-23 12:34:32 -07:00 committed by GitHub
commit 792336b09b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,3 @@
// +build !windows
/*
Copyright The containerd Authors.

View File

@ -1,5 +1,3 @@
// +build !windows
/*
Copyright The containerd Authors.

View File

@ -1,3 +1,5 @@
// +build !linux
/*
Copyright The containerd Authors.
@ -17,7 +19,9 @@
package sys
const (
// OOMScoreAdjMax is not implemented on Windows
// OOMScoreMaxKillable is not implemented on non Linux
OOMScoreMaxKillable = 0
// OOMScoreAdjMax is not implemented on non Linux
OOMScoreAdjMax = 0
)