Shrink std::random_shuffle test to pass on simulators
authorAurelio Remonda <aurelio.remonda@tallertechnologies.com>
Fri, 16 Oct 2015 11:12:15 +0000 (11:12 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 16 Oct 2015 11:12:15 +0000 (12:12 +0100)
2015-10-16  Aurelio Remonda  <aurelio.remonda@tallertechnologies.com>

* 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

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/25_algorithms/random_shuffle/moveable.cc

index 6f86466490c79a1d69801d4ae1d2210593b3ecf7..f89d477cafa4273b7d4ba8b4749b2d33d73e8914 100644 (file)
@@ -1,3 +1,9 @@
+2015-10-16  Aurelio Remonda  <aurelio.remonda@tallertechnologies.com>
+
+       * 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  <szabolcs.nagy@arm.com>
 
        * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Check for
index e854c38a20927ecf593c908abad88d81bd136a10..9ce44ac09fa86c997a75d1c4fce7231d0f1a998f 100644 (file)
@@ -34,8 +34,8 @@ using __gnu_test::rvalstruct;
 
 typedef test_container<rvalstruct, random_access_iterator_wrapper> 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);