stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: exception safety tests in replace, insert, etc
Date Thu, 25 May 2006 22:35:34 GMT
Anton Pevtsov wrote:
> The updated tests are here:
> http://people.apache.org/~antonp/stdcxx05252006a/
> 
> Now all tests cases are used to exercise the exception safety.

Awesome! Please commit ASAP! :)

Martin

> 
> Change Log:
> 2006-05-25  Anton Pevtsov <antonp@moscow.vdiweb.com>
> 
> 	* 21.string.replace.cpp (test_replace): Updated the
> expected_throw value
> 	calculating mechanism.
> 	* 21.string.append.cpp (test cases): Changed the meaning of
> 	(tcase.bthrow == 0) to enable the testing of exception safety,
> 	and used -1 to disable.
> 	(Test, MemFun): Removed unused typedefs.
> 	(test_replace): Renamed throw_after to throw_count to better
> 	reflect the purpose of the variable
> 	Set UserAlloc::allocate() to throw bad_alloc analogously to
> 	operator new.
> 	Exercised exception safety in each test case by default (i.e.,
> 	when tcase.bthrow == 0).
> 	* 21.string.assign.cpp: Same
> 	* 21.string.insert.cpp: Same
> 	* 21.string.op.plus.equal.cpp: Same
> 
> 
> With best wishes,
> Anton Pevtsov


Mime
View raw message