MCPcopy
hub / github.com/opencontainers/runc / TestIPCHost

Function TestIPCHost

libcontainer/integration/exec_test.go:72–87  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

70}
71
72func TestIPCHost(t *testing.T) {
73 if testing.Short() {
74 return
75 }
76
77 l, err := os.Readlink("/proc/1/ns/ipc")
78 ok(t, err)
79
80 config := newTemplateConfig(t, nil)
81 config.Namespaces.Remove(configs.NEWIPC)
82 buffers := runContainerOk(t, config, "readlink", "-v", "/proc/self/ns/ipc")
83
84 if actual := strings.Trim(buffers.Stdout.String(), "\n"); actual != l {
85 t.Fatalf("ipc link not equal to host link %q %q", actual, l)
86 }
87}
88
89func TestIPCJoinPath(t *testing.T) {
90 if testing.Short() {

Callers

nothing calls this directly

Calls 5

okFunction · 0.85
newTemplateConfigFunction · 0.85
runContainerOkFunction · 0.85
RemoveMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…