summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tests/stdlib/tfdleak_multiple.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/stdlib/tfdleak_multiple.nim b/tests/stdlib/tfdleak_multiple.nim
index 51d291284..75c4c0503 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()