From d74defe8d345042d8cde395e2b05dac856cab5ac Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Thu, 31 Oct 2024 16:06:48 +0000 Subject: [PATCH] crypto/rand: skip TestAllocations on plan9 The function crypto/rand.read allocates on Plan 9, so this test would always fail. Fixes #69873 Change-Id: I8d661cb868c32f6985d0926f9ae7b30204cafbf4 Reviewed-on: https://go-review.googlesource.com/c/go/+/624015 Reviewed-by: Filippo Valsorda Reviewed-by: Michael Pratt Reviewed-by: Mauri de Souza Meneguzzo LUCI-TryBot-Result: Go LUCI Reviewed-by: Carlos Amedee Auto-Submit: Filippo Valsorda --- src/crypto/rand/rand_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/crypto/rand/rand_test.go b/src/crypto/rand/rand_test.go index 2d84fdc900..5cf0ad8ec1 100644 --- a/src/crypto/rand/rand_test.go +++ b/src/crypto/rand/rand_test.go @@ -160,6 +160,9 @@ func TestAllocations(t *testing.T) { if race.Enabled || msan.Enabled || asan.Enabled { t.Skip("urandomRead allocates under -race, -asan, and -msan") } + if runtime.GOOS == "plan9" { + t.Skip("plan9 allocates") + } testenv.SkipIfOptimizationOff(t) n := int(testing.AllocsPerRun(10, func() {