commit | 1242c76794936f7bdd4406aa8914500eefe655d4 | [log] [tgz] |
---|---|---|
author | Rob Pike <r@golang.org> | Tue May 17 11:15:14 2011 -0400 |
committer | Russ Cox <rsc@golang.org> | Tue May 17 11:15:14 2011 -0400 |
tree | b089e7e4212e306fe3d261782738e72fa6960ead | |
parent | b96fc594ba3b61755e784d84ce45bb9a78094bc8 [diff] |
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