Multiline error and warning messages in the libstdc++ testsuite

Benjamin Kosnik bkoz@redhat.com
Thu Jan 3 15:46:00 GMT 2002


> Multiline error and warning messages from g++ confuse the libstdc++-v3
> testsuite.  This is worked around with "excess error" tests.  See, for
> example, 23_containers/set_operators.cc and the discussion in
> libstdc++/5145 and libstdc++/5146.

I've long wanted to get rid of the excess errors hacks.

> The error processing is done in procedure dg-test, which is part of
> dejagnu.  Rather than change this it seemed simpler to unwrap the
> multi-line messages, converting them back to single lines of text.

Ok.

> With this done, the "In function ...." messages still causes a problem.
> I have pruned this message, as a search through the test log file shows
> they are not required (by the testsuite).  With these changes, the
> excess error test can be removed from test
> 23_containers/set_operators.cc.

And 23_containers/map_operators.cc, as well.

Is there anyway you can do an audit for all excess errors bits?

> 2002-01-04  David Billinghurst <David.Billinghurst@riotinto.com>
> 
> 	* testsuite/lib/prune.exp: Unwrap multi-line warnings into
> 	single lines of text.
> 	Delete lines "In function ..." from compiler output

This is cool: can you remove the excess errors bits in individual test 
cases as well though?

-benjamin



More information about the Libstdc++ mailing list