mirror of
https://github.com/golang/go
synced 2024-11-15 00:50:32 -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:
parent
91d07ac71c
commit
651e839df8
@ -13,6 +13,7 @@ import (
|
|||||||
"encoding"
|
"encoding"
|
||||||
"fmt"
|
"fmt"
|
||||||
"hash"
|
"hash"
|
||||||
|
"internal/testenv"
|
||||||
"io"
|
"io"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
@ -297,6 +298,7 @@ func TestLargeHashes(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestAllocations(t *testing.T) {
|
func TestAllocations(t *testing.T) {
|
||||||
|
testenv.SkipIfOptimizationOff(t)
|
||||||
if boring.Enabled {
|
if boring.Enabled {
|
||||||
t.Skip("BoringCrypto doesn't allocate the same way as stdlib")
|
t.Skip("BoringCrypto doesn't allocate the same way as stdlib")
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import (
|
|||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
"hash"
|
"hash"
|
||||||
|
"internal/testenv"
|
||||||
"io"
|
"io"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
@ -902,6 +903,7 @@ func TestLargeHashes(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestAllocations(t *testing.T) {
|
func TestAllocations(t *testing.T) {
|
||||||
|
testenv.SkipIfOptimizationOff(t)
|
||||||
if boring.Enabled {
|
if boring.Enabled {
|
||||||
t.Skip("BoringCrypto doesn't allocate the same way as stdlib")
|
t.Skip("BoringCrypto doesn't allocate the same way as stdlib")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user