From: Mikio Hara Date: Sat, 24 Aug 2013 13:05:14 +0000 (+0900) Subject: net: allow TestDialFailPDLeak run in long-mode test X-Git-Tag: go1.2rc2~433 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=33f3dffa7c3105b98e40c417df577683e341be87;p=gostls13.git net: allow TestDialFailPDLeak run in long-mode test R=golang-dev, dave CC=golang-dev https://golang.org/cl/12917050 --- diff --git a/src/pkg/net/dial_test.go b/src/pkg/net/dial_test.go index 59cd9cbe53..d79c8a536f 100644 --- a/src/pkg/net/dial_test.go +++ b/src/pkg/net/dial_test.go @@ -331,13 +331,11 @@ func numFD() int { 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 // runtime.PollDesc structures func TestDialFailPDLeak(t *testing.T) { - if !*testPoller { - t.Skip("test disabled; use -poller to enable") + if testing.Short() { + t.Skip("skipping test in short mode") } const loops = 10