diff --git a/src/bytes/buffer_test.go b/src/bytes/buffer_test.go index 3c73d7dd86..ce2f01a0ad 100644 --- a/src/bytes/buffer_test.go +++ b/src/bytes/buffer_test.go @@ -549,7 +549,12 @@ func TestBufferGrowth(t *testing.T) { } // Test that tryGrowByReslice is inlined. +// Only execute on "linux-amd64" builder in order to avoid breakage. func TestTryGrowByResliceInlined(t *testing.T) { + targetBuilder := "linux-amd64" + if testenv.Builder() != targetBuilder { + t.Skipf("%q gets executed on %q builder only", t.Name(), targetBuilder) + } t.Parallel() goBin := testenv.GoToolPath(t) out, err := exec.Command(goBin, "tool", "nm", goBin).CombinedOutput()