]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/test: make issue5548 test pickier
authorRuss Cox <rsc@golang.org>
Fri, 5 Sep 2014 18:59:09 +0000 (14:59 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 5 Sep 2014 18:59:09 +0000 (14:59 -0400)
commitfcbe51c9e3ecbb1cb5d8d50f64b0bc42a6a0c7f5
tree59573e58256465bc9612436d2e33bf2edc0b803d
parent4b3906fec35b81e9bce7af5e1ce64c2a431c8301
misc/cgo/test: make issue5548 test pickier

If there is doubt about passing arguments correctly
(as there is in this test), there should be doubt about
getting the results back intact too. Using 0 and 1
(especially 0 for success) makes it easy to get a PASS
accidentally when the return value is not actually
being propagated. Use less common values.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews, r
https://golang.org/cl/141110043
misc/cgo/test/issue5548.go