This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Avoid simulator timeouts on more libstdc++ tests


Paolo Carlini wrote:

>> This patch uses the same idiom used elsewhere in the testsuite to
>> condition the size of some tests for simulators.  Running through a
>> stream inserting twenty million characters in simulation can easily
>> trip the 5-minute timeout, for example.

> Yes, no problem with me. Sorry about the delay answering...

Please do not apologize for a response time of a few hours!  You will
simply make the rest of us feel unreasonably guilty. :-)

May I also add this patch to the patchset (with obvious ChangeLog entry)
before checking it in?

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
Index: testsuite/25_algorithms/heap/moveable.cc
===================================================================
--- testsuite/25_algorithms/heap/moveable.cc	(revision 240572)
+++ testsuite/25_algorithms/heap/moveable.cc	(working copy)
@@ -18,6 +18,8 @@
 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 // USA.
 
+// { dg-options "-std=gnu++0x -DITERATIONS=5" { target simulator } }
+
 // 25.3.6 Heap operations [lib.alg.heap.operations]
 
 #undef _GLIBCXX_CONCEPT_CHECKS
@@ -28,6 +30,10 @@
 #include <testsuite_iterators.h>
 #include <testsuite_rvalref.h>
 
+#ifndef ITERATIONS
+#define ITERATIONS 9
+#endif
+
 using __gnu_test::test_container;
 using __gnu_test::random_access_iterator_wrapper;
 using __gnu_test::rvalstruct;
@@ -115,7 +121,7 @@ void
 test01()
 {
   int array[9];
-  for (int i = 1; i < 9; ++i)
+  for (int i = 1; i < ITERATIONS; ++i)
     {
       for(int z = 0; z < i; ++z)
 	array[z] = z;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]