diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2022-09-28 02:06:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 20:06:23 +0200 |
commit | 3d2f0e2c7ce73299e57f2ebd5ee52822c3543554 (patch) | |
tree | d4f959d7d3bf15e959fe37af8826f866cf23f75e /tests/stdlib/tfdleak.nim | |
parent | 98a717dda92ff45dc14818815ddc53764339066b (diff) | |
download | Nim-3d2f0e2c7ce73299e57f2ebd5ee52822c3543554.tar.gz |
make more standard libraries work with `nimPreviewSlimSystem` (#20343)
* make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
Diffstat (limited to 'tests/stdlib/tfdleak.nim')
-rw-r--r-- | tests/stdlib/tfdleak.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/stdlib/tfdleak.nim b/tests/stdlib/tfdleak.nim index 79d7ee0d0..1ac746e48 100644 --- a/tests/stdlib/tfdleak.nim +++ b/tests/stdlib/tfdleak.nim @@ -7,6 +7,9 @@ discard """ import os, osproc, strutils, nativesockets, net, selectors, memfiles, asyncdispatch, asyncnet + +import std/[assertions, syncio] + when defined(windows): import winlean @@ -56,7 +59,7 @@ proc isValidHandle(f: int): bool = proc main() = if paramCount() == 0: # Parent process - let f = system.open("__test_fdleak", fmReadWrite) + let f = syncio.open("__test_fdleak", fmReadWrite) defer: close f leakCheck(f.getOsFileHandle, "system.open()") |