From c3aeeef584abb98e9d442193ab37bc89a5f5300b Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 29 Nov 2017 11:38:03 +0100 Subject: [PATCH] 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 --- src/syscall/syscall_unix_test.go | 3 +++ 1 file changed, 3 insertions(+) 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]) -- 2.50.0