Commit 33f3dffa authored by Mikio Hara's avatar Mikio Hara

net: allow TestDialFailPDLeak run in long-mode test

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/12917050
parent de8de891
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment