bugfixes for the testsuite

This commit is contained in:
Araq 2011-11-08 01:57:23 +01:00
commit 8c03d96c6a
2 changed files with 18 additions and 15 deletions

View file

@ -642,7 +642,7 @@ proc execCmdEx*(command: string, options: set[TProcessOption] = {
var outp = outputStream(p)
result = (TaintedString"", -1)
while true:
result[1] = peekExitCode(p)
if result[1] == -1: result[1] = peekExitCode(p)
if result[1] != -1 and outp.atEnd(outp): break
result[0].string.add(outp.readLine().string)
result[0].string.add("\n")