]> Cypherpunks repositories - gostls13.git/commit
runtime: deflake TestSignalExitStatus
authorIan Lance Taylor <iant@golang.org>
Wed, 18 May 2016 01:16:47 +0000 (18:16 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 18 May 2016 04:08:08 +0000 (04:08 +0000)
commit23a59ba17cbfeb5380845f309f88165b2e38930b
treebd3d670a5b6b8a9b551973aed7ea2cec82cf549c
parentac66bb343181bef154342638d45dcc2c695ded00
runtime: deflake TestSignalExitStatus

The signal might get delivered to a different thread, and that thread
might not run again before the currently running thread returns and
exits. Sleep to give the other thread time to pick up the signal and
crash.

Not tested for all cases, but, optimistically:
Fixes #14063.

Change-Id: Iff58669ac6185ad91cce85e0e86f17497a3659fd
Reviewed-on: https://go-review.googlesource.com/23203
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
src/runtime/crash_unix_test.go
src/runtime/testdata/testprog/signal.go