]> Cypherpunks repositories - gostls13.git/commit
reflect: make allocation test less fragile.
authorRob Pike <r@golang.org>
Sun, 8 May 2011 15:32:18 +0000 (08:32 -0700)
committerRob Pike <r@golang.org>
Sun, 8 May 2011 15:32:18 +0000 (08:32 -0700)
commitc57f672d63d0e13a980def455837043145176451
tree3b8157f84e7a18a16c97f8645e98ccbd4f104890
parent16b4a007de329b96411be1597ea70f805b6adbe7
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
https://golang.org/cl/4533041
src/pkg/reflect/all_test.go