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

Function TestExitStatus

libcontainer/utils/utils_test.go:37–43  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35}
36
37func TestExitStatus(t *testing.T) {
38 status := unix.WaitStatus(0)
39 ex := ExitStatus(status)
40 if ex != 0 {
41 t.Errorf("expected exit status to equal 0 and received %d", ex)
42 }
43}
44
45func TestExitStatusSignaled(t *testing.T) {
46 status := unix.WaitStatus(2)

Callers

nothing calls this directly

Calls 1

ExitStatusFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…