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

Function TestExitStatusSignaled

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

Source from the content-addressed store, hash-verified

43}
44
45func TestExitStatusSignaled(t *testing.T) {
46 status := unix.WaitStatus(2)
47 ex := ExitStatus(status)
48 if ex != 130 {
49 t.Errorf("expected exit status to equal 130 and received %d", ex)
50 }
51}
52
53func TestWriteJSON(t *testing.T) {
54 person := struct {

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…