diff options
author | Araq <rumpf_a@web.de> | 2011-11-29 01:24:58 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-29 01:24:58 +0100 |
commit | e261a88d074038391574402e88737af4752a1041 (patch) | |
tree | 6dfbeb266de2f0b91f0a7f416d6538521ca0892f /tests/tester.nim | |
parent | a489161b1629b2b7347521c8ec67a0e5e812ef6a (diff) | |
download | Nim-e261a88d074038391574402e88737af4752a1041.tar.gz |
further steps to get rid of deprecated endOfFile and readLine
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 |