]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix build on FreeBSD
authorRuss Cox <rsc@golang.org>
Wed, 31 Jul 2013 03:21:07 +0000 (23:21 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 31 Jul 2013 03:21:07 +0000 (23:21 -0400)
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

index 8fd6dc646376ebf02c73850efcd64e74145546a1..0e36bb2d34b037f7023a2d965dbe09688972737f 100644 (file)
@@ -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{})