mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
ac66bb3431
commit
23a59ba17c
2 changed files with 13 additions and 5 deletions
|
|
@ -149,10 +149,6 @@ func loop(i int, c chan bool) {
|
|||
|
||||
func TestSignalExitStatus(t *testing.T) {
|
||||
testenv.MustHaveGoBuild(t)
|
||||
switch runtime.GOOS {
|
||||
case "netbsd", "solaris":
|
||||
t.Skipf("skipping on %s; see https://golang.org/issue/14063", runtime.GOOS)
|
||||
}
|
||||
exe, err := buildTestProg(t, "testprog")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue