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

Function TestCheckMountDestInSys

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

Source from the content-addressed store, hash-verified

90}
91
92func TestCheckMountDestInSys(t *testing.T) {
93 m := mountEntry{
94 Mount: &configs.Mount{
95 Destination: "/sys/fs/cgroup",
96 Source: "tmpfs",
97 Device: "tmpfs",
98 },
99 }
100 dest := "/rootfs//sys/fs/cgroup"
101 err := checkProcMount("/rootfs", dest, m)
102 if err != nil {
103 t.Fatalf("destination inside /sys should not return an error: %v", err)
104 }
105}
106
107func TestCheckMountDestFalsePositive(t *testing.T) {
108 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…