go/src/os/signal/signal_test.go

var settleTime

var fatalWaitingTime

func init() {}

func waitSig(t *testing.T, c <-chan os.Signal, sig os.Signal) {}

func waitSigAll(t *testing.T, c <-chan os.Signal, sig os.Signal) {}

func waitSig1(t *testing.T, c <-chan os.Signal, sig os.Signal, all bool) {}

// quiesce waits until we can be reasonably confident that all pending signals
// have been delivered by the OS.
func quiesce() {}

// Test that basic signal handling works.
func TestSignal(t *testing.T) {}

func TestStress(t *testing.T) {}

func testCancel(t *testing.T, ignore bool) {}

// Test that Reset cancels registration for listed signals on all channels.
func TestReset(t *testing.T) {}

// Test that Ignore cancels registration for listed signals on all channels.
func TestIgnore(t *testing.T) {}

// Test that Ignored correctly detects changes to the ignored status of a signal.
func TestIgnored(t *testing.T) {}

var checkSighupIgnored

// Test that Ignored(SIGHUP) correctly detects whether it is being run under nohup.
func TestDetectNohup(t *testing.T) {}

var sendUncaughtSighup

var dieFromSighup

// Test that Stop cancels the channel's registrations.
func TestStop(t *testing.T) {}

// Test that when run under nohup, an uncaught SIGHUP does not kill the program.
func TestNohup(t *testing.T) {}

// Test that SIGCONT works (issue 8953).
func TestSIGCONT(t *testing.T) {}

// Test race between stopping and receiving a signal (issue 14571).
func TestAtomicStop(t *testing.T) {}

// atomicStopTestProgram is run in a subprocess by TestAtomicStop.
// It tries to trigger a signal delivery race. This function should
// either catch a signal or die from it.
func atomicStopTestProgram(t *testing.T) {}

func TestTime(t *testing.T) {}

var checkNotifyContext

var ctxNotifyTimes

func TestNotifyContextNotifications(t *testing.T) {}

func TestNotifyContextStop(t *testing.T) {}

func TestNotifyContextCancelParent(t *testing.T) {}

func TestNotifyContextPrematureCancelParent(t *testing.T) {}

func TestNotifyContextSimultaneousStop(t *testing.T) {}

func TestNotifyContextStringer(t *testing.T) {}

// #44193 test signal handling while stopping and starting the world.
func TestSignalTrace(t *testing.T) {}