Fix oom tests on non Linux

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko 2021-03-22 17:49:20 -07:00 committed by Maksym Pavlenko
parent d54225ccee
commit eb7c7c71e2
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
)