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

Function TestCheckProcMountOnProc

libcontainer/rootfs_linux_test.go:27–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25}
26
27func TestCheckProcMountOnProc(t *testing.T) {
28 m := mountEntry{
29 Mount: &configs.Mount{
30 Destination: "/proc",
31 Source: "foo",
32 Device: "proc",
33 },
34 }
35 dest := "/rootfs/proc/"
36 err := checkProcMount("/rootfs", dest, m)
37 if err != nil {
38 t.Fatalf("procfs type mount on /proc should not return an error: %v", err)
39 }
40}
41
42func TestCheckBindMountOnProc(t *testing.T) {
43 m := mountEntry{

Callers

nothing calls this directly

Calls 1

checkProcMountFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…