1.cc: Use only 10000 iterations for simulator targets.
[platform/upstream/gcc.git] / libstdc++-v3 / testsuite / ext / pb_ds / regression / hash_no_data_map_rand.cc
index 76753ad..652774a 100644 (file)
 #include <regression/rand/assoc/rand_regression_test.hpp>
 #include <regression/assoc/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;
   typedef hash_set_tl_t map_tl_t;
 
-  return rand_regression_test(5000, 10000,
+  return rand_regression_test(ITERATIONS, KEYS,
                              "hash_no_data_map_rand_regression_test",
                              map_tl_t());
 }