mirror of
https://github.com/golang/go
synced 2024-11-24 10:50:13 -07:00
net: skip new alloc test on some builders
Change-Id: Ib785212eb9e035a10d327696c180caf730d2e5e7 Reviewed-on: https://go-review.googlesource.com/c/go/+/361634 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com> Trust: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
6fefb7f9f3
commit
a0d661ab0f
@ -475,6 +475,17 @@ func TestUDPReadTimeout(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestAllocs(t *testing.T) {
|
||||
switch runtime.GOOS {
|
||||
case "plan9":
|
||||
// Plan9 wasn't optimized.
|
||||
t.Skipf("skipping on %v", runtime.GOOS)
|
||||
}
|
||||
builder := os.Getenv("GO_BUILDER_NAME")
|
||||
switch builder {
|
||||
case "linux-amd64-noopt":
|
||||
// Optimizations are required to remove the allocs.
|
||||
t.Skipf("skipping on %v", builder)
|
||||
}
|
||||
conn, err := ListenUDP("udp4", &UDPAddr{IP: IPv4(127, 0, 0, 1)})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
Loading…
Reference in New Issue
Block a user