Skip to content

Commit 0ec9fe6

Browse files
author
Zhou Hao
committed
validation: Add system validation
Signed-off-by: Zhou Hao <[email protected]>
1 parent 34d0d59 commit 0ec9fe6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

validation/process_rlimits.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
package main
22

33
import (
4+
"os"
5+
"runtime"
6+
47
"github.com/opencontainers/runtime-tools/validation/util"
58
)
69

710
func main() {
11+
if "linux" != runtime.GOOS && "solaris" != runtime.GOOS {
12+
util.Skip("POSIX-specific process.rlimits test", map[string]string{"OS": runtime.GOOS})
13+
os.Exit(0)
14+
}
15+
816
g := util.GetDefaultGenerator()
917
g.AddProcessRlimits("RLIMIT_NOFILE", 1024, 1024)
1018
err := util.RuntimeInsideValidate(g, nil)

0 commit comments

Comments
 (0)