]> Cypherpunks repositories - gostls13.git/commit
reflect: make allocation test less fragile.
authorRob Pike <r@golang.org>
Tue, 17 May 2011 15:15:14 +0000 (11:15 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 17 May 2011 15:15:14 +0000 (11:15 -0400)
commit1242c76794936f7bdd4406aa8914500eefe655d4
treeb089e7e4212e306fe3d261782738e72fa6960ead
parentb96fc594ba3b61755e784d84ce45bb9a78094bc8
reflect: make allocation test less fragile.
When GOMAXPROCS>1, the testing framework runs in parallel with the
test itself and may do a small number of allocations, so allow the
"noAllocs" condition to admit just a few.

Fixes #1782.

R=rsc
CC=golang-dev, rsc
https://golang.org/cl/4533041
src/pkg/reflect/all_test.go