Commit 62ec9ed6 by Mark Mitchell Committed by Mark Mitchell

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
parent 3a4fd356
2008-08-29 Mark Mitchell <mark@codesourcery.com>
* testsuite/25_algorithms/nth_element/2.cc: Constrain iterations
when testing on a simultor.
2008-08-28 Paolo Carlini <paolo.carlini@oracle.com> 2008-08-28 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/tr1/6_containers/unordered_set/requirements/typedef.cc: * testsuite/tr1/6_containers/unordered_set/requirements/typedef.cc:
......
...@@ -18,6 +18,12 @@ ...@@ -18,6 +18,12 @@
// 25.3.2 [lib.alg.nth.element] // 25.3.2 [lib.alg.nth.element]
// { dg-options "-DMAX_SIZE=256" { target simulator } }
#ifndef MAX_SIZE
#define MAX_SIZE (1 << 10)
#endif
#include <vector> #include <vector>
#include <algorithm> #include <algorithm>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
...@@ -64,7 +70,7 @@ do_test01(unsigned size) ...@@ -64,7 +70,7 @@ do_test01(unsigned size)
void void
test01() test01()
{ {
for (unsigned size = 4; size <= 1 << 10; size <<= 1) for (unsigned size = 4; size <= MAX_SIZE; size <<= 1)
do_test01(size); do_test01(size);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment