1
0
mirror of https://github.com/golang/go synced 2024-11-26 10:58:16 -07:00

net: allow TestDialFailPDLeak run in long-mode test

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/12917050
This commit is contained in:
Mikio Hara 2013-08-24 22:05:14 +09:00
parent de8de8912e
commit 33f3dffa7c

View File

@ -331,13 +331,11 @@ func numFD() int {
panic("numFDs not implemented on " + runtime.GOOS) panic("numFDs not implemented on " + runtime.GOOS)
} }
var testPoller = flag.Bool("poller", false, "platform supports runtime-integrated poller")
// Assert that a failed Dial attempt does not leak // Assert that a failed Dial attempt does not leak
// runtime.PollDesc structures // runtime.PollDesc structures
func TestDialFailPDLeak(t *testing.T) { func TestDialFailPDLeak(t *testing.T) {
if !*testPoller { if testing.Short() {
t.Skip("test disabled; use -poller to enable") t.Skip("skipping test in short mode")
} }
const loops = 10 const loops = 10