mirror of
https://github.com/golang/go
synced 2024-11-14 20:10:30 -07:00
crypto/rand: skip TestAllocations if optimizations are off
Without optimizations escape analysis can't do as much. Updates #66779 Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-noopt Change-Id: I9ccd1b995c62427ceebd9ce5c98170dbf4a93e8b Reviewed-on: https://go-review.googlesource.com/c/go/+/618275 Reviewed-by: Roland Shoemaker <roland@golang.org> Auto-Submit: Filippo Valsorda <filippo@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
parent
4b4b2fcaa4
commit
05d8a33b37
@ -158,6 +158,7 @@ func TestAllocations(t *testing.T) {
|
||||
if race.Enabled {
|
||||
t.Skip("urandomRead allocates under -race")
|
||||
}
|
||||
testenv.SkipIfOptimizationOff(t)
|
||||
|
||||
n := int(testing.AllocsPerRun(10, func() {
|
||||
buf := make([]byte, 32)
|
||||
|
Loading…
Reference in New Issue
Block a user