X Tutup
Skip to content

Commit eb7c7c7

Browse files
mxpvMaksym Pavlenko
authored andcommitted
Fix oom tests on non Linux
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
1 parent d54225c commit eb7c7c7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

sys/oom_unix.go renamed to sys/oom_linux.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build !windows
2-
31
/*
42
Copyright The containerd Authors.
53
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build !windows
2-
31
/*
42
Copyright The containerd Authors.
53
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// +build !linux
2+
13
/*
24
Copyright The containerd Authors.
35
@@ -17,7 +19,9 @@
1719
package sys
1820

1921
const (
20-
// OOMScoreAdjMax is not implemented on Windows
22+
// OOMScoreMaxKillable is not implemented on non Linux
23+
OOMScoreMaxKillable = 0
24+
// OOMScoreAdjMax is not implemented on non Linux
2125
OOMScoreAdjMax = 0
2226
)
2327

0 commit comments

Comments
 (0)
X Tutup