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 <[EMAIL PROTECTED]>
Merged rev 653964 from trunk. 2008-05-06 Travis Vitek <[EMAIL PROTECTED]> * 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