stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Farid Zaripov <Far...@kyiv.vdiweb.com>
Subject RE: test for lib.string.io
Date Wed, 12 Jul 2006 16:26:26 GMT
 > -----Original Message-----
 > From: Martin Sebor [mailto:sebor@roguewave.com]
 > Sent: Wednesday, July 12, 2006 3:39 AM
 > To: stdcxx-dev@incubator.apache.org
 > Subject: Re: test for lib.string.io
 >
 > With the patch applied I get 120 failed assertions out of the
 > io test, all of them on lines 872 through 886. They all look
 > like they are due to the test expecting failbit for
 > insertions into the stream buffer that fail and the library
 > setting badbit. I think the library does the right thing and
 > the standard needs to be fixed to say that
 > operator<<(ostream&, string) a) is a Formatted Output
 > Function and b) should behave according to the requirements
 > on such functions and thus should set badbit and not failbit
 > when it fails to produce the expected output.

   I updated the test (failbit checking is replaced to the badbit 
checking). The updated diff in attach.

Farid.

Mime
View raw message