(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func 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 | |
| 89 | func TestIPCJoinPath(t *testing.T) { |
| 90 | if testing.Short() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…