From 1794880299eaac110dad1fb972c91cb8a6e17086 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 30 Jul 2013 23:21:07 -0400 Subject: [PATCH] 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 --- src/pkg/runtime/map_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pkg/runtime/map_test.go b/src/pkg/runtime/map_test.go index 8fd6dc6463..0e36bb2d34 100644 --- a/src/pkg/runtime/map_test.go +++ b/src/pkg/runtime/map_test.go @@ -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{}) -- 2.48.1