public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6282] libstdc++: Increase timeout for pthread7-rope.cc test
@ 2022-01-06 14:57 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-01-06 14:57 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:e19e2989c36c5148ceb67a1f2575718fc1927ce6

commit r12-6282-ge19e2989c36c5148ceb67a1f2575718fc1927ce6
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Jan 6 11:10:31 2022 +0000

    libstdc++: Increase timeout for pthread7-rope.cc test
    
    This test spawns thousands of threads and so times out if the tests are
    run with a low timeout value and the machine is busy.
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/ext/rope/pthread7-rope.cc: Add dg-timeout-factor.

Diff:
---
 libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc b/libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc
index 9a870d1fc2e..b0b92adcfa9 100644
--- a/libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc
+++ b/libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc
@@ -20,6 +20,7 @@
 // { dg-do run }
 // { dg-options "-pthread"  }
 // { dg-require-effective-target pthread }
+// { dg-timeout-factor 2 }
 
 #include <ext/rope>
 #include <cstring>
@@ -33,7 +34,7 @@ typedef __gnu_cxx::rope<char, std::allocator<char> > rope_type;
 rope_type foo2;
 rope_type foo4;
 
-void* thread_main(void *) 
+void* thread_main(void *)
 {
   // To see a problem with gcc 3.3 and before, set a break point here.
   // Single step through c_str implementation, call sched_yield after


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-06 14:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06 14:57 [gcc r12-6282] libstdc++: Increase timeout for pthread7-rope.cc test Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).