(t *testing.T)
| 87 | } |
| 88 | |
| 89 | func TestIPCJoinPath(t *testing.T) { |
| 90 | if testing.Short() { |
| 91 | return |
| 92 | } |
| 93 | |
| 94 | l, err := os.Readlink("/proc/1/ns/ipc") |
| 95 | ok(t, err) |
| 96 | |
| 97 | config := newTemplateConfig(t, nil) |
| 98 | config.Namespaces.Add(configs.NEWIPC, "/proc/1/ns/ipc") |
| 99 | buffers := runContainerOk(t, config, "readlink", "-v", "/proc/self/ns/ipc") |
| 100 | |
| 101 | if actual := strings.Trim(buffers.Stdout.String(), "\n"); actual != l { |
| 102 | t.Fatalf("ipc link not equal to host link %q %q", actual, l) |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | func TestIPCBadPath(t *testing.T) { |
| 107 | if testing.Short() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…