From: Michael Munday Date: Thu, 5 Jul 2018 13:54:50 +0000 (-0400) Subject: misc/cgo/testcarchive: increase timeout duration in TestOsSignal X-Git-Tag: go1.11beta2~203 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0268a63ffadb6f56ac25962276ccd7c7b6edca08;p=gostls13.git misc/cgo/testcarchive: increase timeout duration in TestOsSignal This test is slightly flaky on the s390x builder and I suspect that the 100ms timeout is a little too optimistic when the VM is starved. Increase the timeout to 5s to match the other part of the test. Fixes #26231. Change-Id: Ia6572035fb3efb98749f2c37527d250a4c779477 Reviewed-on: https://go-review.googlesource.com/122315 Run-TryBot: Michael Munday TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/misc/cgo/testcarchive/src/libgo3/libgo3.go b/misc/cgo/testcarchive/src/libgo3/libgo3.go index e276a3c347..3725f7ab0f 100644 --- a/misc/cgo/testcarchive/src/libgo3/libgo3.go +++ b/misc/cgo/testcarchive/src/libgo3/libgo3.go @@ -29,13 +29,13 @@ func ResetSIGIO() { signal.Reset(syscall.SIGIO) } -// SawSIGIO returns whether we saw a SIGIO within a brief pause. +// SawSIGIO reports whether we saw a SIGIO. //export SawSIGIO func SawSIGIO() C.int { select { case <-sigioChan: return 1 - case <-time.After(100 * time.Millisecond): + case <-time.After(5 * time.Second): return 0 } }