]> Cypherpunks repositories - gostls13.git/commit
net/netip: skip some TestAddrStringAllocs tests on noopt builders
authorTobias Klauser <tklauser@distanz.ch>
Thu, 12 May 2022 07:30:54 +0000 (09:30 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 12 May 2022 13:42:39 +0000 (13:42 +0000)
commit0d8345df6637b0fbd595eb8f7cb61be5ebeee314
tree187a60cec823b03cc4f4ee742297c86ac46d06d9
parent2bea43b0e7f3e636ffc8239f9d3fccdd5d763c8b
net/netip: skip some TestAddrStringAllocs tests on noopt builders

CL 403914 introduced TestAddrStringAllocs which checks that there is
only 1 alloc in Addr.String for v4-in-v6 addresses. This requires
optimizations to be enabled, otherwise there are 2 allocs. Skip the
ipv4-in-ipv6 sub-tests on noopt builders to fix failing
TestAddrStringAllocs on the noopt builders.

Change-Id: I0285264260b264b53cf822dc7cec4829e9854531
Reviewed-on: https://go-review.googlesource.com/c/go/+/405834
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/net/netip/netip_test.go