]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: add missing err check in test
authorTobias Klauser <tklauser@distanz.ch>
Wed, 29 Nov 2017 10:38:03 +0000 (11:38 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Wed, 29 Nov 2017 15:52:59 +0000 (15:52 +0000)
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 <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/syscall_unix_test.go

index b1fe78deba46dd19b6e1a533ae1137a477071ebc..637aece4395964155fae0684351df7be2ae3ff7d 100644 (file)
@@ -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])