Skip to content

Commit 7e5e4a7

Browse files
cuonglmgopherbot
authored andcommitted
math/big: disable TestNewIntAllocs on noopt builder
Since when that test requires inlining, which is disabled on noopt builder. Updates #29951 Change-Id: I9d7a0a64015a30d3bfb5ad5d806ea0955657fda3 Reviewed-on: https://go-review.googlesource.com/c/go/+/422039 Run-TryBot: Cuong Manh Le <[email protected]> Auto-Submit: Cuong Manh Le <[email protected]> Reviewed-by: Than McIntosh <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent c1bfefe commit 7e5e4a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/math/big/int_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"bytes"
99
"encoding/hex"
1010
"fmt"
11+
"internal/testenv"
1112
"math"
1213
"math/rand"
1314
"strconv"
@@ -1905,6 +1906,9 @@ func TestNewIntMinInt64(t *testing.T) {
19051906
}
19061907

19071908
func TestNewIntAllocs(t *testing.T) {
1909+
if strings.HasSuffix(testenv.Builder(), "-noopt") {
1910+
t.Skip("inlining is disabled on noopt builder")
1911+
}
19081912
for _, n := range []int64{0, 7, -7, 1 << 30, -1 << 30, 1 << 50, -1 << 50} {
19091913
x := NewInt(3)
19101914
got := testing.AllocsPerRun(100, func() {

0 commit comments

Comments
 (0)