auto_ptr problems

Stephen M. Webb
Wed Jul 3 13:03:00 GMT 2002

On July 3, 2002 03:01 pm, Phil Edwards wrote:
> On Wed, Jul 03, 2002 at 11:30:53AM -0700, Benjamin Kosnik wrote:
> > I'm thinking of just adding a testsuite/negative toplevel directory
> > for the negative tests (currently,
> > also qualify.) I'm not quite sure what to do though. Thoughts,
> > anybody?
> >
> > Might be easier to just add a spot specifically for negative tests.
> > We need negative tests too. (ie, the test passes if compilation
> > fails).
> Rather a negative toplevel, I'd suggest negative_*.cc files in each
> of the exiting directories.  That way tests for <topic> are all
> nicely gathered in
>     nn_foo/
>     nn_foo/
>     nn_foo/
> Alternative spellings of "negative_" include "neg_", "mustfail_", and
> "xfail_" for starters, although that last is a very posix/dejagnu
> name.

I agree that the expected failure tests should be lumped in with the 
expected pass tests.  I'd suggest appending rather than prepending the 
"fail" or whatever bit to the name so it sorts nicely.  It's a small 
thing but the small things add up.

I'd also point out that unlike the expected pass tests, a separate test 
source file is required for each expected compilation failure.  You'd 
end up with


and so forth.

Stephen M. Webb

More information about the Libstdc++ mailing list