icnhoukdsiih / testlib

Automatically exported from code.google.com/p/testlib
0 stars 0 forks source link

Checker output can be huge #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create checker which calls ouf.readInt().
2. Create output file with 1 million question marks.
3. Run checker [input] [output] [answer]

What is the expected output? What do you see instead?
Desired output should be quite small.
Now the full 1Mb token goes to stdout.

What version of the product are you using? On what operating system?
0.6.4 Jun 23
Windows XP SP3

Please provide any additional information below.
There is function __testlib_part for truncating a bad token before printing it, 
but it is used only in InStream::readWord and InStream::readString utilities 
with pattern matching.
It would be great if all the possible checker output were truncated.

Original issue reported on code.google.com by stgati...@gmail.com on 10 Dec 2010 at 12:27

Attachments:

GoogleCodeExporter commented 8 years ago
Done.

Original comment by mirzayan...@gmail.com on 18 Dec 2010 at 5:43