From: Mark Mitchell Date: Sat, 30 Aug 2008 17:31:22 +0000 (+0000) Subject: 2.cc: Constrain iterations when testing on a simultor. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62ec9ed6573ad7157bbda798afbfef3156eea6a6;p=platform%2Fupstream%2Fgcc.git 2.cc: Constrain iterations when testing on a simultor. * testsuite/25_algorithms/nth_element/2.cc: Constrain iterations when testing on a simultor. From-SVN: r139805 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a5073f7..ec3292f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2008-08-29 Mark Mitchell + + * testsuite/25_algorithms/nth_element/2.cc: Constrain iterations + when testing on a simultor. + 2008-08-28 Paolo Carlini * testsuite/tr1/6_containers/unordered_set/requirements/typedef.cc: diff --git a/libstdc++-v3/testsuite/25_algorithms/nth_element/2.cc b/libstdc++-v3/testsuite/25_algorithms/nth_element/2.cc index 84f959a..47084ad 100644 --- a/libstdc++-v3/testsuite/25_algorithms/nth_element/2.cc +++ b/libstdc++-v3/testsuite/25_algorithms/nth_element/2.cc @@ -18,6 +18,12 @@ // 25.3.2 [lib.alg.nth.element] +// { dg-options "-DMAX_SIZE=256" { target simulator } } + +#ifndef MAX_SIZE +#define MAX_SIZE (1 << 10) +#endif + #include #include #include @@ -64,7 +70,7 @@ do_test01(unsigned size) void test01() { - for (unsigned size = 4; size <= 1 << 10; size <<= 1) + for (unsigned size = 4; size <= MAX_SIZE; size <<= 1) do_test01(size); }