Skip to content

Commit

Permalink
unix: don't call t.Fatal from goroutine in TestSendmsgBuffers
Browse files Browse the repository at this point in the history
Change-Id: Iddef23a1fb2fcde4560ec0bb9e9ae0301fef965f
Reviewed-on: https://go-review.googlesource.com/c/sys/+/429415
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
  • Loading branch information
tklauser committed Sep 8, 2022
1 parent 87db552 commit 7ac13a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unix/syscall_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,8 @@ func TestSendmsgBuffers(t *testing.T) {
}
n, oobn, recvflags, _, err := unix.RecvmsgBuffers(fds[1], bufs, nil, 0)
if err != nil {
t.Fatal(err)
t.Error(err)
return
}
if n != 10 {
t.Errorf("got %d bytes, want 10", n)
Expand Down

0 comments on commit 7ac13a9

Please sign in to comment.