]> Cypherpunks repositories - gostls13.git/commit
test: fix flaky NaN-key map complexity test
authorBrad Fitzpatrick <bradfitz@golang.org>
Sun, 7 Apr 2013 18:56:15 +0000 (11:56 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 7 Apr 2013 18:56:15 +0000 (11:56 -0700)
commit5e21cb786589d28ad6b31ec9e43f8bf73ff93a82
treec5028f1d69f531d9b316fe038963b227abb8e646
parent4235fa8f2a1e3b9f162a477b7ce210b98e84eb65
test: fix flaky NaN-key map complexity test

Don't measure wall time in map.go. Keep it portable
and only test NaN, but not time.

Move time tests to mapnan.go and only measure user CPU time,
not wall time. It builds on Darwin and Linux, the primary
platforms where people hack on the runtime & in particular
maps. The runtime is shared, though, so we don't need it to
run on all of the platforms.

Fixes flaky build failures like:
http://build.golang.org/log/ba67eceefdeaa1142cb6c990a62fa3ffd8fd73f8

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/8479043
test/map.go
test/mapnan.go [new file with mode: 0644]