]> Cypherpunks repositories - gostls13.git/commit
test: Reduce race conditions in chan/nonblock.go.
authorIan Lance Taylor <iant@golang.org>
Fri, 10 Sep 2010 22:37:20 +0000 (15:37 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 10 Sep 2010 22:37:20 +0000 (15:37 -0700)
commit8e985dcda6c85863dda7b0e65c6f089383ec8f31
tree087a0c7a8ba0b7ea852ffc7c2f35a78eaaa29fd9
parent5011c27018bf7fb5091c501cae71ab3dc6a59a6b
test: Reduce race conditions in chan/nonblock.go.

nonblock.go wants to test nonblocking operations on
synchronous channels, so it is inherently racy.  This
introduces loops to make the race conditions much more likely
to succeed when using gccgo.

R=r
CC=golang-dev
https://golang.org/cl/2161043
test/chan/nonblock.go