Disable tfdleak_multiple on platforms other than Windows (#14624)

This commit is contained in:
Timothee Cour 2020-06-11 12:54:32 -07:00 • committed by GitHub
commit c83a22b76e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,4 +20,7 @@ proc testFdLeak() =
count.inc count.inc
doAssert count == 0, "Leaked " & $count & " times" 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()