From commits-return-2886-apmail-stdcxx-commits-archive=stdcxx.apache.org@stdcxx.apache.org Wed May 07 02:01:05 2008 Return-Path: Delivered-To: apmail-stdcxx-commits-archive@www.apache.org Received: (qmail 43965 invoked from network); 7 May 2008 02:01:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2008 02:01:05 -0000 Received: (qmail 60908 invoked by uid 500); 7 May 2008 02:01:07 -0000 Delivered-To: apmail-stdcxx-commits-archive@stdcxx.apache.org Received: (qmail 60880 invoked by uid 500); 7 May 2008 02:01:07 -0000 Mailing-List: contact commits-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list commits@stdcxx.apache.org Received: (qmail 60869 invoked by uid 99); 7 May 2008 02:01:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2008 19:01:07 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 02:00:30 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 885A82388A06; Tue, 6 May 2008 19:00:44 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r653966 - /stdcxx/branches/4.2.x/tests/algorithms/25.random.shuffle.cpp Date: Wed, 07 May 2008 02:00:44 -0000 To: commits@stdcxx.apache.org From: vitek@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080507020044.885A82388A06@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: vitek Date: Tue May 6 19:00:43 2008 New Revision: 653966 URL: http://svn.apache.org/viewvc?rev=653966&view=rev Log: 2008-05-06 Travis Vitek Merged rev 653964 from trunk. 2008-05-06 Travis Vitek * tests/algorithms/25.random.shuffle.cpp (test_random_shuffle): Break from loop on first assertion failure. Modified: stdcxx/branches/4.2.x/tests/algorithms/25.random.shuffle.cpp Modified: stdcxx/branches/4.2.x/tests/algorithms/25.random.shuffle.cpp URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/algorithms/25.random.shuffle.cpp?rev=653966&r1=653965&r2=653966&view=diff ============================================================================== --- stdcxx/branches/4.2.x/tests/algorithms/25.random.shuffle.cpp (original) +++ stdcxx/branches/4.2.x/tests/algorithms/25.random.shuffle.cpp Tue May 6 19:00:43 2008 @@ -307,14 +307,12 @@ }; for (std::size_t i = 0; i != sizeof array / sizeof *array; ++i) { - const bool success = array [i] == result [i]; - if (!success) { - rw_assert (0, 0, line, - "randomly shuffled sequence failed to match " - "the expected result (data portability failure) " - "%d != %d at %zu", - array [i], result [i], i + 1); - } + if (!rw_assert (array [i] == result [i], 0, line, + "randomly shuffled sequence failed to match " + "the expected result (data portability failure) " + "%d != %d at %zu", + array [i], result [i], i + 1)) + break; } #else