Shrink std::random_shuffle test to pass on simulators

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
This commit is contained in:
Aurelio Remonda 2015-10-16 11:12:15 +00:00 committed by Jonathan Wakely
parent 6d244704f7
commit 6b6254db8a
2 changed files with 8 additions and 3 deletions

View 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

View 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);