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

Function waitProcess

libcontainer/integration/utils_test.go:86–95  ·  view source on GitHub ↗
(p *libcontainer.Process, t testing.TB)

Source from the content-addressed store, hash-verified

84}
85
86func waitProcess(p *libcontainer.Process, t testing.TB) {
87 t.Helper()
88 _, err := p.Wait()
89 if err != nil {
90 if stderr, ok := p.Stderr.(fmt.Stringer); ok {
91 err = fmt.Errorf("%w; stderr:\n%s", err, stderr)
92 }
93 t.Fatalf("command failed: %v", err)
94 }
95}
96
97// newRootfs creates a new tmp directory and copies the busybox root
98// filesystem to it.

Callers 15

TestEnterFunction · 0.85
TestProcessEnvFunction · 0.85
TestProcessEmptyCapsFunction · 0.85
TestProcessCapsFunction · 0.85
TestAdditionalGroupsFunction · 0.85
testFreezeFunction · 0.85
TestContainerStateFunction · 0.85
TestPassExtraFilesFunction · 0.85
TestSysctlFunction · 0.85
TestOomScoreAdjFunction · 0.85
TestHookFunction · 0.85

Calls 1

WaitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…