summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2018-11-15 01:57:02 +0100
committerAraq <rumpf_a@web.de>2018-11-23 11:58:28 +0100
commit9c2365d5c2229f327d19262894995047a357e252 (patch)
treeac6d99d9e65afe900d36095b266212fcd262d18b /lib
parente012eb100109d343b7cdbe2598d439d84eda7830 (diff)
downloadNim-9c2365d5c2229f327d19262894995047a357e252.tar.gz
activated more tests, allow input in test spec
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/osproc.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim
index 0cf2171de..ac455ce99 100644
--- a/lib/pure/osproc.nim
+++ b/lib/pure/osproc.nim
@@ -1323,6 +1323,12 @@ proc execCmdEx*(command: string, options: set[ProcessOption] = {
   ##  let (outp, errC) = execCmdEx("nim c -r mytestfile.nim")
   var p = startProcess(command, options=options + {poEvalCommand})
   var outp = outputStream(p)
+
+  # There is no way to provide input for the child process
+  # anymore. Closing it will create EOF on stdin instead of eternal
+  # blocking.
+  close inputStream(p)
+
   result = (TaintedString"", -1)
   var line = newStringOfCap(120).TaintedString
   while true: