1
0
mirror of https://github.com/golang/go synced 2024-11-27 02:11:17 -07:00

cmd/compile: disable append of make test on noopt builder

Updates #53888

Change-Id: I34ef2c5bd23816e1991cfec2bef4cae72676b523
Reviewed-on: https://go-review.googlesource.com/c/go/+/422037
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
This commit is contained in:
Cuong Manh Le 2022-08-09 00:25:32 +07:00 committed by Gopher Robot
parent 4bcc138bc6
commit a34a97d88d

View File

@ -2,15 +2,21 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !race
//go:build !race && !goexperiment.unified
package test
import (
"internal/testenv"
"strings"
"testing"
)
// TODO(cuonglm,mdempsky): figure out why Unifed IR failed?
func TestAppendOfMake(t *testing.T) {
if strings.HasSuffix(testenv.Builder(), "-noopt") {
t.Skip("append of make optimization is disabled on noopt builder")
}
for n := 32; n < 33; n++ { // avoid stack allocation of make()
b := make([]byte, n)
f := func() {