re PR testsuite/31884 (priority_queue_dijkstra.cc operates on deallocated memory)
[gcc.git] / libstdc++-v3 / testsuite / ext / pb_ds / regression / hash_no_data_map_rand.cc
index 76753ad011445c5275148324f9e77328ce01f150..2c55313f65a3a25d5ae1ca807248403ef7a87b9c 100644 (file)
  * Contains a random-operation test for maps and sets.
  */
 
+// { dg-require-time "" }
+
 #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());
 }