Skip to content

Commit 801e6fd

Browse files
author
Zhou Hao
authored
Merge pull request #509 from wking/remove-rlimits-windows-warning
runtimetest: Make validateRlimits silent on Windows
2 parents 502b569 + 95e0d95 commit 801e6fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd/runtimetest/main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,11 @@ func validateHostname(spec *rspec.Spec) error {
267267
}
268268

269269
func validateRlimits(spec *rspec.Spec) error {
270-
if spec.Process == nil {
270+
if runtime.GOOS == "windows" {
271271
return nil
272272
}
273273

274-
if runtime.GOOS != "linux" && runtime.GOOS != "solaris" {
275-
logrus.Warnf("process.rlimits validation not yet implemented for OS %q", runtime.GOOS)
274+
if spec.Process == nil {
276275
return nil
277276
}
278277

0 commit comments

Comments
 (0)