Skip to content

Commit

Permalink
Fix oom tests on non Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
  • Loading branch information
mxpv authored and Maksym Pavlenko committed Mar 23, 2021
1 parent d54225c commit eb7c7c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions sys/oom_unix.go → sys/oom_linux.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build !windows

/*
Copyright The containerd Authors.
Expand Down
2 changes: 0 additions & 2 deletions sys/oom_unix_test.go → sys/oom_linux_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// +build !windows

/*
Copyright The containerd Authors.
Expand Down
6 changes: 5 additions & 1 deletion sys/oom_windows.go → sys/oom_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !linux

/*
Copyright The containerd Authors.
Expand All @@ -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
)

Expand Down

0 comments on commit eb7c7c7

Please sign in to comment.