stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Pevtsov" <>
Subject exception safety tests in replace, insert, etc
Date Thu, 25 May 2006 14:47:59 GMT
The updated tests are here:

Now all tests cases are used to exercise the exception safety.

Change Log:
2006-05-25  Anton Pevtsov <>

	* 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
	* Same

With best wishes,
Anton Pevtsov

View raw message