1 //go:build windows 2 3 package jobcontainers 4 5 import ( 6 "testing" 7 8 specs "github.com/opencontainers/runtime-spec/specs-go" 9 ) 10 11 func TestNamePipeDeny(t *testing.T) { 12 s := &specs.Spec{ 13 Mounts: []specs.Mount{ 14 { 15 Destination: "/path/in/container", 16 Source: `\\.\pipe\dummy\path`, 17 }, 18 }, 19 } 20 if err := fallbackMountSetup(s, "/test"); err == nil { 21 t.Fatal("expected named pipe mount validation to fail for job container") 22 } 23 } 24