From: Keith Randall Date: Tue, 26 Apr 2022 23:32:07 +0000 (-0700) Subject: runtime: disable windowed Smhasher test on 32-bit systems X-Git-Tag: go1.19beta1~532 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=68b655f2b91c4407ccd781271039857e0d332989;p=gostls13.git runtime: disable windowed Smhasher test on 32-bit systems This test tends to be flaky on 32-bit systems. There's not enough bits in the hash output, so we expect a nontrivial number of collisions, and it is often quite a bit higher than expected. Fixes #43130 Change-Id: If35413b7c45eed778a08b834dacf98009ceca840 Reviewed-on: https://go-review.googlesource.com/c/go/+/402456 Run-TryBot: Keith Randall TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor Reviewed-by: Keith Randall --- diff --git a/src/runtime/hash_test.go b/src/runtime/hash_test.go index cf56c57a5f..e72600641f 100644 --- a/src/runtime/hash_test.go +++ b/src/runtime/hash_test.go @@ -525,6 +525,13 @@ func windowed(t *testing.T, k Key) { if GOARCH == "wasm" { t.Skip("Too slow on wasm") } + if PtrSize == 4 { + // This test tends to be flaky on 32-bit systems. + // There's not enough bits in the hash output, so we + // expect a nontrivial number of collisions, and it is + // often quite a bit higher than expected. See issue 43130. + t.Skip("Flaky on 32-bit systems") + } if testing.Short() { t.Skip("Skipping in short mode") }