From 78b71d40fdaafe05531f9bb668dc19ff0bbde01a Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Tue, 19 May 2026 13:45:40 -0400 Subject: [PATCH] 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 Reviewed-by: Damien Neil LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com Auto-Submit: Damien Neil --- src/encoding/json/jsontext/token_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/encoding/json/jsontext/token_test.go b/src/encoding/json/jsontext/token_test.go index f0b1e41e20..788eb5e428 100644 --- a/src/encoding/json/jsontext/token_test.go +++ b/src/encoding/json/jsontext/token_test.go @@ -13,6 +13,8 @@ import ( "reflect" "strconv" "testing" + + "internal/testenv" ) func TestTokenStringAllocations(t *testing.T) {