]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* testsuite/27_io/basic_stringbuf/overflow/char/1.cc: Use only
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Feb 2007 10:08:04 +0000 (10:08 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Feb 2007 10:08:04 +0000 (10:08 +0000)
10000 iterations for simulator targets.
* testsuite/ext/pb_ds/regression/tree_data_map_rand.cc: Use only 5
iterations for simulator targets.
* testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc: Ditto.
* testsuite/ext/pb_ds/regression/trie_data_map_rand.cc: Ditto.
* testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc: Ditto.
* testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc: Ditto.
* testsuite/ext/pb_ds/regression/hash_data_map_rand.cc: Ditto.
* testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Ditto.
* testsuite/23_containers/set/modifiers/16728.cc: Use only 10
iterations for simulator targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121682 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/23_containers/set/modifiers/16728.cc
libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/1.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/hash_data_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/priority_queue_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/tree_data_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/trie_data_map_rand.cc
libstdc++-v3/testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc

index 0e36c977831b4f26739e11370f3f234ae8ab96ab..795146d4557c127fea87f46edb7b4bef892e51d2 100644 (file)
@@ -1,3 +1,18 @@
+2007-02-07  Hans-Peter Nilsson  <hp@axis.com>
+
+       * testsuite/27_io/basic_stringbuf/overflow/char/1.cc: Use only
+       10000 iterations for simulator targets.
+       * testsuite/ext/pb_ds/regression/tree_data_map_rand.cc: Use only 5
+       iterations for simulator targets.
+       * testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc: Ditto.
+       * testsuite/ext/pb_ds/regression/trie_data_map_rand.cc: Ditto.
+       * testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc: Ditto.
+       * testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc: Ditto.
+       * testsuite/ext/pb_ds/regression/hash_data_map_rand.cc: Ditto.
+       * testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Ditto.
+       * testsuite/23_containers/set/modifiers/16728.cc: Use only 10
+       iterations for simulator targets.
+
 2007-02-06  Benjamin Kosnik  <bkoz@redhat.com>
             Marco Trudel  <mtrudel@gmx.ch>
 
index 2120f5bbff7a2072b59c00ee8bc0649adb67b5c3..ad80901e4d6b1f3374b0c692b2119d4072c1bf61 100644 (file)
@@ -38,8 +38,14 @@ using namespace std;
 
 typedef int test_type;
 
+// This can take extremely long on simulators, timing out the test.
+// { dg-options "-DITERATIONS=10" { target simulator } }
+#ifndef ITERATIONS
+#define ITERATIONS 10000
+#endif
+
 // The number of iterations to be performed.
-int iterations = 10000;
+int iterations = ITERATIONS;
 
 // The number of values to insert in the container, 32 will cause 5
 // (re)allocations to be performed (sizes 4, 8, 16, 32 and 64)
index 10a35185a123f1e4064bc778a2b6cda8e031b376..b07863b18fb9d236681bdc6d07c7e11f364e08bf 100644 (file)
@@ -50,8 +50,14 @@ test01(unsigned iter)
     }
 }
 
+// This can take long on simulators, timing out the test.
+// { dg-options "-DITERATIONS=10000" { target simulator } }
+#ifndef ITERATIONS
+#define ITERATIONS 10000000
+#endif
+
 int main()
 {
-  test01(10000000);
+  test01(ITERATIONS);
   return 0;
 }
index d9814830b7e1ac7d3b181e4993c178e4a18b4ebd..d82813e729a52f8522d1c048da66ca0572af2b22 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_map_tl_t map_tl_t;
 
-  return rand_regression_test(5000, 10000,
+  return rand_regression_test(ITERATIONS, KEYS,
                              "hash_data_map_rand_regression_test",
                              map_tl_t());
 }
index 76753ad011445c5275148324f9e77328ce01f150..652774a39aaa2f46a9c00f0c20d551501b77be2f 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());
 }
index aae3971fa2deaa3e09258a8199f009546851ab56..67e5b6f455a65935bd626023f1cf759cd136578d 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(5000, 10000,
+  return rand_regression_test(ITERATIONS, KEYS,
                              "tree_no_data_map_rand_regression_test", 
                              pq_tl_t());
 }
index 8ffabd22a53c94a11d0941cf4d61cf0ad8110583..645d2eecd056943a1b984704e33670122d7f5e0d 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 tree_map_tl_t map_tl_t;
 
-  return rand_regression_test(5000, 10000,
+  return rand_regression_test(ITERATIONS, KEYS,
                              "tree_data_map_rand_regression_test",
                              map_tl_t());
 }
index 57fe8dcff9fbae7e6d5aae69b353a462b77d88e0..1e3a3dbe05e67545b0c29a93757dd304bc149bde 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 tree_set_tl_t map_tl_t;
 
-  return rand_regression_test(5000, 10000,
+  return rand_regression_test(ITERATIONS, KEYS,
                              "tree_no_data_map_rand_regression_test",
                              map_tl_t());
 }
index fa64607d1a356bcf8049a57e7f8fc18aab3aa5c2..90e4fc6129f3b4cb8090a8d44327bd9294981d7e 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 trie_map_tl_t map_tl_t;
 
-  return rand_regression_test(5000, 10000,
+  return rand_regression_test(ITERATIONS, KEYS,
                              "trie_data_map_rand_regression_test",
                              map_tl_t());
 }
index eec51dfa0170e0308ab7b9f9040b20f5d1cc4715..cd1991e73c526725a774e90156796df03a61c889 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 trie_set_tl_t map_tl_t;
 
-  return rand_regression_test(5000, 10000,
+  return rand_regression_test(ITERATIONS, KEYS,
                              "trie_no_data_map_rand_regression_test", 
                              map_tl_t());
 }