diff options
Diffstat (limited to 'tests/osproc/tstdin.nim')
-rw-r--r-- | tests/osproc/tstdin.nim | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/osproc/tstdin.nim b/tests/osproc/tstdin.nim deleted file mode 100644 index b491c2500..000000000 --- a/tests/osproc/tstdin.nim +++ /dev/null @@ -1,19 +0,0 @@ -discard """ - file: "tstdin.nim" - output: "10" -""" -import osproc, os, streams - -const filename = when defined(Windows): "ta.exe" else: "ta" - -doAssert fileExists(getCurrentDir() / "tests" / "osproc" / filename) - -var p = startProcess(filename, getCurrentDir() / "tests" / "osproc") -p.inputStream.write("5\n") -p.inputStream.flush() -while true: - let line = p.outputStream.readLine() - if line != "": - echo line - else: - break |