From: Aurelio Remonda Date: Fri, 16 Oct 2015 11:12:15 +0000 (+0000) Subject: Shrink std::random_shuffle test to pass on simulators X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b6254db8a902343e79632c547696915bc1e21de;p=gcc.git Shrink std::random_shuffle test to pass on simulators 2015-10-16 Aurelio Remonda * testsuite/25_algorithms/random_shuffle/moveable.cc: Change variable N from const int N = 200000 to const unsigned int N = 10000. Delete useless fill_ascending function call. From-SVN: r228876 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6f86466490c..f89d477cafa 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2015-10-16 Aurelio Remonda + + * testsuite/25_algorithms/random_shuffle/moveable.cc: Change variable + N from const int N = 200000 to const unsigned int N = 10000. + Delete useless fill_ascending function call. + 2015-10-15 Szabolcs Nagy * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Check for diff --git a/libstdc++-v3/testsuite/25_algorithms/random_shuffle/moveable.cc b/libstdc++-v3/testsuite/25_algorithms/random_shuffle/moveable.cc index e854c38a209..9ce44ac09fa 100644 --- a/libstdc++-v3/testsuite/25_algorithms/random_shuffle/moveable.cc +++ b/libstdc++-v3/testsuite/25_algorithms/random_shuffle/moveable.cc @@ -34,8 +34,8 @@ using __gnu_test::rvalstruct; typedef test_container Container; -const int N = 200000; -int A[N]; +const unsigned int N = 10000; +int A[N]; // This is made global because we don't want it on the stack void fill_ascending() { @@ -70,7 +70,6 @@ test02() { bool test __attribute__((unused)) = true; - fill_ascending(); rvalstruct rv[10] = {1,2,3,4,5,6,7,8,9,10}; int result[10] = {10,1,2,3,4,5,6,7,8,9}; Container con(rv, rv + 10);