* testsuite/25_algorithms/nth_element/2.cc: Constrain iterations
when testing on a simultor.
From-SVN: r139805
+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>
* testsuite/tr1/6_containers/unordered_set/requirements/typedef.cc:
// 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 <algorithm>
#include <testsuite_hooks.h>
void
test01()
{
- for (unsigned size = 4; size <= 1 << 10; size <<= 1)
+ for (unsigned size = 4; size <= MAX_SIZE; size <<= 1)
do_test01(size);
}