]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Increase timeout for 23_containers/mdspan/submdspan tests [PR124290]
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 12 Mar 2026 19:46:22 +0000 (20:46 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 12 Mar 2026 19:46:22 +0000 (20:46 +0100)
The 23_containers/mdspan/submdspan/selections tests often time out on
Solaris/SPARC:

WARNING: 23_containers/mdspan/submdspan/selections/left_padded.cc  -std=gnu++26 (test for excess errors) program timed out.
FAIL: 23_containers/mdspan/submdspan/selections/left_padded.cc  -std=gnu++26 (test for excess errors)

Even on an unloaded system, compilation takes ca. 4 minutes, close to
the default DejaGnu timeout of 5 minutes.  Setting/increasing the
timeout factor to 2 was not enough, so this patch raises it to 4 for all
5 tests.

Tested on sparc-sun-solaris2.11 and x86_64-pc-linux-gnu.

2026-03-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

libstdc++-v3:
PR libstdc++/124290
* testsuite/23_containers/mdspan/submdspan/selections/left_padded.cc:
Use dg-timeout-factor 4.
* testsuite/23_containers/mdspan/submdspan/selections/left.cc:
* testsuite/23_containers/mdspan/submdspan/selections/right_padded.cc:
* testsuite/23_containers/mdspan/submdspan/selections/right.cc:
Likewise.
* testsuite/23_containers/mdspan/submdspan/selections/stride.cc:
Likewise.

libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/left.cc
libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/left_padded.cc
libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/right.cc
libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/right_padded.cc
libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/stride.cc

index d6a85d0380b096351183906ca8fb7d22d22dc992..2172e33c786416116e19364a5896119d963c3517 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++26 } }
+// { dg-timeout-factor 4 }
 #include "testcases.h"
 
 int
index 711ce35b6e45587ce86f8d692c1f3c34cca4c0de..9acc245606480525feb99e37c164fdbef1316405 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do run { target c++26 } }
-// { dg-timeout-factor 2 }
+// { dg-timeout-factor 4 }
 #include "testcases.h"
 
 int
index 25570721072135fdd87ffb5eddf54e49d2b2cbd8..178fe3e55a4f48f48497bb0f0c77f2c34cc41c80 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++26 } }
+// { dg-timeout-factor 4 }
 #include "testcases.h"
 
 int
index 24ed6cb7d62f633b94acd1de6cbfdeffe153b9ec..7548d87d8b52c4553a7aa20d3d6ef22eabe629bd 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do run { target c++26 } }
-// { dg-timeout-factor 2 }
+// { dg-timeout-factor 4 }
 #include "testcases.h"
 
 int
index 19451d7f954e5567746fd7487ff4fca7c5d4b2a4..3709a75da0b6eef0882dc59586651ba31065cca8 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++26 } }
+// { dg-timeout-factor 4 }
 #include "testcases.h"
 
 int