summary refs log tree commit diff stats
path: root/tests/tester.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-29 01:24:58 +0100
committerAraq <rumpf_a@web.de>2011-11-29 01:24:58 +0100
commite261a88d074038391574402e88737af4752a1041 (patch)
tree6dfbeb266de2f0b91f0a7f416d6538521ca0892f /tests/tester.nim
parenta489161b1629b2b7347521c8ec67a0e5e812ef6a (diff)
downloadNim-e261a88d074038391574402e88737af4752a1041.tar.gz
further steps to get rid of deprecated endOfFile and readLine
Diffstat (limited to 'tests/tester.nim')
-rwxr-xr-xtests/tester.nim4
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