Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 1754 invoked from network); 25 May 2006 14:48:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 May 2006 14:48:42 -0000 Received: (qmail 14945 invoked by uid 500); 25 May 2006 14:48:42 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 14930 invoked by uid 500); 25 May 2006 14:48:41 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 14919 invoked by uid 99); 25 May 2006 14:48:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 07:48:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of AntonP@moscow.vdiweb.com designates 195.210.189.132 as permitted sender) Received: from [195.210.189.132] (HELO mail.moscow.vdiweb.com) (195.210.189.132) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 May 2006 07:48:41 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: exception safety tests in replace, insert, etc Date: Thu, 25 May 2006 18:47:59 +0400 Message-ID: <4D6A8407B7AC6F4D95B0E55C4E7C4C6204471A10@exmsk.moscow.vdiweb.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: exception safety tests in replace, insert, etc Thread-Index: AcaACjc+7nFupYGmTRGhvzMu9cWixg== From: "Anton Pevtsov" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The updated tests are here: http://people.apache.org/~antonp/stdcxx05252006a/ 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 =3D=3D 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 =3D=3D 0). * 21.string.assign.cpp: Same * 21.string.insert.cpp: Same * 21.string.op.plus.equal.cpp: Same With best wishes, Anton Pevtsov