]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/testcarchive: increase timeout duration in TestOsSignal
authorMichael Munday <mike.munday@ibm.com>
Thu, 5 Jul 2018 13:54:50 +0000 (09:54 -0400)
committerMichael Munday <mike.munday@ibm.com>
Fri, 6 Jul 2018 13:55:35 +0000 (13:55 +0000)
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 <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testcarchive/src/libgo3/libgo3.go

index e276a3c347ae2b680c0a689beaf0b5ce02c74142..3725f7ab0ffe39519db02827fd02e8dd71d5ec98 100644 (file)
@@ -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
        }
 }