mirror of
https://github.com/golang/go.git
synced 2026-06-27 19:30:52 +00:00
encoding/json/jsontext: skip inline-dependent test on noopt builders
TestTokenStringAllocations verifies a behavior of the inliner. Skip the test on the noopt builders, where inlining is disabled. Fixes #79460 Fixes #79462 Fixes #79463 Fixes #79465 Fixes #79466 Fixes #79469 Fixes #79470 Fixes #79471 Fixes #79472 Change-Id: I848b2b7913c848aefa0ed788c984590c9207dafa Reviewed-on: https://go-review.googlesource.com/c/go/+/779920 LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Pratt <mpratt@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> Reviewed-by: Joseph Tsai <joetsai@digital-static.net> Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Rhys Hiltner <rhys.hiltner@gmail.com>
This commit is contained in:
parent
e01f29f918
commit
c9a3e8bbd2
1 changed files with 2 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ package jsontext
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"internal/testenv"
|
||||
"math"
|
||||
"reflect"
|
||||
"strconv"
|
||||
|
|
@ -15,6 +16,7 @@ import (
|
|||
)
|
||||
|
||||
func TestTokenStringAllocations(t *testing.T) {
|
||||
testenv.SkipIfOptimizationOff(t)
|
||||
if testing.CoverMode() != "" {
|
||||
t.Skip("coverage mode breaks the compiler optimization this depends on")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue