From: Tobias Klauser Date: Wed, 29 Nov 2017 10:38:03 +0000 (+0100) Subject: syscall: add missing err check in test X-Git-Tag: go1.10beta1~120 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c3aeeef584abb98e9d442193ab37bc89a5f5300b;p=gostls13.git syscall: add missing err check in test Follow CL 75810 which did the same for x/sys/unix. Change-Id: I6314a97989631d589369c7b6001d1523ec2cc242 Reviewed-on: https://go-review.googlesource.com/80555 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/syscall/syscall_unix_test.go b/src/syscall/syscall_unix_test.go index b1fe78deba..637aece439 100644 --- a/src/syscall/syscall_unix_test.go +++ b/src/syscall/syscall_unix_test.go @@ -180,6 +180,9 @@ func TestPassFD(t *testing.T) { uc.Close() }) _, oobn, _, _, err := uc.ReadMsgUnix(buf, oob) + if err != nil { + t.Fatalf("ReadMsgUnix: %v", err) + } closeUnix.Stop() scms, err := syscall.ParseSocketControlMessage(oob[:oobn])