Boost logo

Boost Testing :

Subject: Re: [Boost-testing] problem with test matrix truncating output
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2016-03-31 17:37:57


Robert Ramey wrote:
> I have a problem.
>
> I have some sort of bug on the building of the serialization library
> with msvc compilers.
>
> Looking at the test matrix doesn't help since since building the
> library provokes some warnings. The actual error is in a portion of
> the output which has been truncated. I had hoped to get around this
> without bugging the build/test developers by setting up my old laptop
> to run the serialization library tests. After a certain amount of
> pain, I got the test setup working - but things pass on this
> platform. Clearly I'm out of sync somewhere.
>
> This demonstrates that there really is no substitute for making
> changes to the regression test system so that it does not truncate the
> output from failed tests.

Which test do you have in mind exactly?
One with
[The content has been trimmed by the report system because it exceeds
65536 bytes]
at the end of the output?

If that's the case then you can download the xml file from the FTP
server and check the compiler output manually.

I'm not sure if disabling trimming is a good idea. Is it possible to
esstimate the size increase of the reports after that?

Instead, we could trim in a different way, e.g. take half of the trimmed
output from the beginning of the original and the rest from the end or
do something more intelligent like searching for the first error and
showing the part of the output around it.

In case you wanted to play with it, here are the lines responsible for
writing the logs:
https://github.com/boostorg/regression/blob/develop/reports/src/links_page.cpp#L277
https://github.com/boostorg/regression/blob/develop/reports/src/links_page.cpp#L288
https://github.com/boostorg/regression/blob/develop/reports/src/links_page.cpp#L313
which calls operator trimming the result:
https://github.com/boostorg/regression/blob/develop/reports/src/xml.cpp#L257

Regards,
Adam


Boost-testing list run by mbergal at meta-comm.com