mirror of https://github.com/golang/go.git
reflect: turn off allocation test if instrumentation is on
Help fix the asan builders. Change-Id: I980f5171519643c3543bdefc6ea46fd0fca17c28 Reviewed-on: https://go-review.googlesource.com/c/go/+/674616 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Keith Randall <khr@google.com> Auto-Submit: Keith Randall <khr@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
4cdca1342b
commit
a070533633
|
|
@ -13,6 +13,8 @@ import (
|
|||
"internal/asan"
|
||||
"internal/goarch"
|
||||
"internal/goexperiment"
|
||||
"internal/msan"
|
||||
"internal/race"
|
||||
"internal/testenv"
|
||||
"io"
|
||||
"math"
|
||||
|
|
@ -8766,6 +8768,9 @@ func TestTypeAssertPanic(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestTypeAssertAllocs(t *testing.T) {
|
||||
if race.Enabled || asan.Enabled || msan.Enabled {
|
||||
t.Skip("instrumentation breaks this optimization")
|
||||
}
|
||||
typeAssertAllocs[[128]int](t, ValueOf([128]int{}), 0)
|
||||
typeAssertAllocs[any](t, ValueOf([128]int{}), 0)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue