Skip to content

Commit 01b330b

Browse files
nshalmangopherbot
authored andcommitted
unix: improve flaky solaris test logging
relates to golang/go#58259 Change-Id: I47bbf4afb59b6e98571297ba53d7f9370712e030 Reviewed-on: https://go-review.googlesource.com/c/sys/+/465015 Reviewed-by: Bryan Mills <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent e7d7f63 commit 01b330b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

unix/syscall_solaris_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ func TestEventPortErrors(t *testing.T) {
183183
timeout.Nsec = 1
184184
_, err = port.GetOne(timeout)
185185
if err != unix.ETIME {
186-
t.Errorf("unexpected lack of timeout")
186+
// See https://go.dev/issue/58259
187+
// Perhaps we sometimes get EINTR ???
188+
t.Errorf("port.GetOne(%v) returned error %v, want %v", timeout, err, unix.ETIME)
187189
}
188190
err = port.DissociateFd(uintptr(0))
189191
if err == nil {

0 commit comments

Comments
 (0)