activated more tests, allow input in test spec

This commit is contained in:
Arne Döring 2018-11-15 01:57:02 +01:00 • committed by Araq
commit 9c2365d5c2
26 changed files with 223 additions and 124 deletions

View file

@ -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: