]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/errors: fix malloc test for dragonfly
authorIan Lance Taylor <iant@golang.org>
Tue, 25 Oct 2016 19:59:36 +0000 (12:59 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 25 Oct 2016 20:11:50 +0000 (20:11 +0000)
commite24ccfc6fc6289073cdbe6f47f8a915e798578e9
treea26c7e9f4fed82b6f30e1992817a86f75ea8d7a0
parentd391dc260a71e9f67530d7c2ca20d595514d3514
misc/cgo/errors: fix malloc test for dragonfly

The Dragonfly libc returns a non-zero value for malloc(-1).

Fixes #17585.

Change-Id: Icfe68011ccbc75c676273ee3c3efdf24a520a004
Reviewed-on: https://go-review.googlesource.com/32050
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/cgo/errors/malloc.go
misc/cgo/errors/test.bash