diff options
Diffstat (limited to 'tests/tester.nim')
-rwxr-xr-x | tests/tester.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tester.nim b/tests/tester.nim index 5f70b8f5b..d50b4f766 100755 --- a/tests/tester.nim +++ b/tests/tester.nim @@ -117,8 +117,8 @@ proc callCompiler(cmdTemplate, filename, options: string): TSpec = var outp = p.outputStream var suc = "" var err = "" - while running(p) or not atEnd(outp): - var x = outp.readLine().string + var x = newStringOfCap(120) + while outp.readLine(x.TaintedString) or running(p): if x =~ pegOfInterest: # `s` should contain the last error/warning message err = x |