aboutsummaryrefslogtreecommitdiff
path: root/src/hash
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2022-12-01 11:38:38 -0500
committerThan McIntosh <thanm@google.com>2022-12-01 19:24:55 +0000
commite24380b6fa82682baa4103787373520c7685e38a (patch)
tree5454eac6941fd7881f3e1d4f914bbda8f7818bc3 /src/hash
parent36b87f273cc43e21685179dc1664ebb5493d26ae (diff)
downloadgo-e24380b6fa82682baa4103787373520c7685e38a.tar.gz
go-e24380b6fa82682baa4103787373520c7685e38a.zip
runtime,hash/maphash: eliminate maphash torture test for -race
Disable the "torture" portion of the maphash tests if -race is in effect (these tests can cause timeouts on the longtest -race builder). Fixes #57030. Change-Id: I23d7561dac3e81d979cad9e0efa6f5b7154aadd2 Reviewed-on: https://go-review.googlesource.com/c/go/+/454455 Run-TryBot: Than McIntosh <thanm@google.com> Reviewed-by: Keith Randall <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@google.com>
Diffstat (limited to 'src/hash')
-rw-r--r--src/hash/maphash/smhasher_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hash/maphash/smhasher_test.go b/src/hash/maphash/smhasher_test.go
index 6e6f2983a2..27cedc4ce1 100644
--- a/src/hash/maphash/smhasher_test.go
+++ b/src/hash/maphash/smhasher_test.go
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+//go:build !race
+
package maphash
import (
@@ -18,6 +20,9 @@ import (
// https://code.google.com/p/smhasher/
// This code is a port of some of the Smhasher tests to Go.
+// Note: due to the long running time of these tests, they are
+// currently disabled in -race mode.
+
var fixedSeed = MakeSeed()
// Sanity checks.