1.cc: Use only 10000 iterations for simulator targets.
[platform/upstream/gcc.git] / libstdc++-v3 / testsuite / ext / pb_ds / regression / priority_queue_rand.cc
index 6266e13..67e5b6f 100644 (file)
 #include <regression/rand/priority_queue/rand_regression_test.hpp>
 #include <regression/priority_queue/common_type.hpp>
 
+// This can take long on simulators, timing out the test.
+// { dg-options "-DPB_DS_REGRESSION -DITERATIONS=5" { target simulator } }
+#ifndef ITERATIONS
+#define ITERATIONS 5000
+#endif
+#ifndef KEYS
+#define KEYS 10000
+#endif
 int
 main(int argc, char* a_p_argv[])
 {
   using namespace pb_ds::test;
-  return rand_regression_test(10000, 10000,
+  return rand_regression_test(ITERATIONS, KEYS,
                              "tree_no_data_map_rand_regression_test", 
                              pq_tl_t());
 }