Skip to content

Commit

Permalink
Merge pull request #4295 from kolyshkin/fix-setv1-panic
Browse files Browse the repository at this point in the history
libct/cg/dev: fix TestSetV1Allow panic
  • Loading branch information
AkihiroSuda authored Jun 1, 2024
2 parents 94d255b + d697725 commit ba4b52d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libcontainer/cgroups/devices/v1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/opencontainers/runc/libcontainer/cgroups/fscommon"
"github.com/opencontainers/runc/libcontainer/configs"
"github.com/opencontainers/runc/libcontainer/devices"
"github.com/opencontainers/runc/libcontainer/userns"
)

func init() {
Expand All @@ -17,6 +18,9 @@ func init() {
}

func TestSetV1Allow(t *testing.T) {
if userns.RunningInUserNS() {
t.Skip("userns detected; setV1 does nothing")
}
dir := t.TempDir()

for file, contents := range map[string]string{
Expand Down

0 comments on commit ba4b52d

Please sign in to comment.