From c83a22b76e22d3cae0e0e6e4b9358ed9bd31ecb5 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Thu, 11 Jun 2020 12:54:32 -0700 Subject: [PATCH] Disable tfdleak_multiple on platforms other than Windows (#14624) --- tests/stdlib/tfdleak_multiple.nim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/stdlib/tfdleak_multiple.nim b/tests/stdlib/tfdleak_multiple.nim index 51d291284b..75c4c05031 100644 --- a/tests/stdlib/tfdleak_multiple.nim +++ b/tests/stdlib/tfdleak_multiple.nim @@ -20,4 +20,7 @@ proc testFdLeak() = count.inc doAssert count == 0, "Leaked " & $count & " times" -when isMainModule: testFdLeak() +when defined(windows): + # tfdleak was only flaky for windows (and for netbsd, there is still a bug) + # note that this test is quite slow, 87 sec on windows. + testFdLeak()