Skip to content

Commit

Permalink
Merge pull request #5245 from mxpv/oom
Browse files Browse the repository at this point in the history
Fix oom tests on non Linux
  • Loading branch information
mxpv committed Mar 23, 2021
2 parents d54225c + eb7c7c7 commit 792336b
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 792336b

Please sign in to comment.