Commit 17948802 authored by Russ Cox's avatar Russ Cox

runtime: fix build on FreeBSD

This is what I get for being talked into a test.

TBR=bradfitz
CC=golang-dev
https://golang.org/cl/12045044
parent 5fea8c03
......@@ -373,6 +373,9 @@ func testMapLookups(t *testing.T, m map[string]string) {
}
func TestMapSize(t *testing.T) {
if runtime.GOMAXPROCS(-1) != 1 {
t.Skip("gomaxprocs > 1 - not accurate")
}
var m map[struct{}]struct{}
size := bytesPerRun(100, func() {
m = make(map[struct{}]struct{})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment