lots of small changes
This commit is contained in:
parent
c0c35839cc
commit
a5ecbf823f
85 changed files with 180 additions and 110 deletions
|
|
@ -1,14 +1,18 @@
|
|||
discard """
|
||||
output: '''
|
||||
start ta_out
|
||||
to stdout
|
||||
to stdout
|
||||
to stderr
|
||||
to stderr
|
||||
to stdout
|
||||
to stdout
|
||||
end ta_out
|
||||
'''
|
||||
"""
|
||||
|
||||
echo "start ta_out"
|
||||
|
||||
# This file is prefixed with an "a", because other tests
|
||||
# depend on it and it must be compiled first.
|
||||
stdout.writeLine("to stdout")
|
||||
|
|
@ -25,3 +29,5 @@ stdout.writeLine("to stdout")
|
|||
stdout.flushFile()
|
||||
stdout.writeLine("to stdout")
|
||||
stdout.flushFile()
|
||||
|
||||
echo "end ta_out"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
discard """
|
||||
output: ""
|
||||
"""
|
||||
|
||||
import osproc, streams, strutils, os
|
||||
|
||||
const NumberOfProcesses = 13
|
||||
|
|
@ -13,8 +9,7 @@ proc execCb(idx: int, p: Process) =
|
|||
if exitCode < len(gResults):
|
||||
gResults[exitCode] = p.outputStream.readAll.strip
|
||||
|
||||
when isMainModule:
|
||||
|
||||
when true:
|
||||
if paramCount() == 0:
|
||||
gResults = newSeq[string](NumberOfProcesses)
|
||||
var checks = newSeq[string](NumberOfProcesses)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,15 @@
|
|||
discard """
|
||||
output: '''--------------------------------------
|
||||
output: '''
|
||||
start tstderr
|
||||
--------------------------------------
|
||||
to stderr
|
||||
to stderr
|
||||
--------------------------------------
|
||||
'''
|
||||
"""
|
||||
|
||||
echo "start tstderr"
|
||||
|
||||
import osproc, os, streams
|
||||
|
||||
const filename = "ta_out".addFileExt(ExeExt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue