1
0
mirror of https://github.com/golang/go synced 2024-11-14 19:50:21 -07:00

crypto/sha256,crypto/sha512: skip TestAllocations without optimizations

Fixes #70004
Fixes #70005

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-noopt
Change-Id: I6766a722f124646262fa0d2a1ff245f8b93bc920
Reviewed-on: https://go-review.googlesource.com/c/go/+/622095
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
Filippo Valsorda 2024-10-23 20:01:36 +02:00
parent 91d07ac71c
commit 651e839df8
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import (
"encoding"
"fmt"
"hash"
"internal/testenv"
"io"
"testing"
)
@ -297,6 +298,7 @@ func TestLargeHashes(t *testing.T) {
}
func TestAllocations(t *testing.T) {
testenv.SkipIfOptimizationOff(t)
if boring.Enabled {
t.Skip("BoringCrypto doesn't allocate the same way as stdlib")
}

View File

@ -14,6 +14,7 @@ import (
"encoding/hex"
"fmt"
"hash"
"internal/testenv"
"io"
"testing"
)
@ -902,6 +903,7 @@ func TestLargeHashes(t *testing.T) {
}
func TestAllocations(t *testing.T) {
testenv.SkipIfOptimizationOff(t)
if boring.Enabled {
t.Skip("BoringCrypto doesn't allocate the same way as stdlib")
}