]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Increase timeout for pthread7-rope.cc test
authorJonathan Wakely <jwakely@redhat.com>
Thu, 6 Jan 2022 11:10:31 +0000 (11:10 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 26 Apr 2022 11:05:33 +0000 (12:05 +0100)
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.

(cherry picked from commit e19e2989c36c5148ceb67a1f2575718fc1927ce6)

libstdc++-v3/testsuite/ext/rope/pthread7-rope.cc

index 4896053a013a1fb8e55fd868ea8f243c146ca684..1d0e9a96caecae9b3d0acbf9ce9d681e1f085801 100644 (file)
@@ -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