mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-29 10:01:39 +00:00
lots of small changes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user