encoding/json/jsontext: skip allocation test when inlining is disabled

This test is failing on the noopt builder, where disabling inlining
prevents the compiler from avoiding the allocation.

Fixes #79502

Change-Id: I795284fa42c50174720c8b6ca08cf75e6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/779960
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
This commit is contained in:
Michael Pratt 2026-05-19 13:45:40 -04:00 committed by Gopher Robot
parent 6b0243ccf6
commit 78b71d40fd

View file

@ -13,6 +13,8 @@ import (
"reflect"
"strconv"
"testing"
"internal/testenv"
)
func TestTokenStringAllocations(t *testing.T) {