[gcc r16-8056] libstdc++: Increase timeout for 23_containers/mdspan/submdspan tests [PR124290]
Rainer Orth
ro@gcc.gnu.org
Thu Mar 12 19:46:49 GMT 2026
https://gcc.gnu.org/g:c7d056184dfd80fe0b505be747f15f933ba6f613
commit r16-8056-gc7d056184dfd80fe0b505be747f15f933ba6f613
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date: Thu Mar 12 20:46:22 2026 +0100
libstdc++: Increase timeout for 23_containers/mdspan/submdspan tests [PR124290]
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.
Diff:
---
.../testsuite/23_containers/mdspan/submdspan/selections/left.cc | 1 +
.../testsuite/23_containers/mdspan/submdspan/selections/left_padded.cc | 2 +-
.../testsuite/23_containers/mdspan/submdspan/selections/right.cc | 1 +
.../testsuite/23_containers/mdspan/submdspan/selections/right_padded.cc | 2 +-
.../testsuite/23_containers/mdspan/submdspan/selections/stride.cc | 1 +
5 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/left.cc b/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/left.cc
index d6a85d0380b0..2172e33c7864 100644
--- a/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/left.cc
+++ b/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/left.cc
@@ -1,4 +1,5 @@
// { dg-do run { target c++26 } }
+// { dg-timeout-factor 4 }
#include "testcases.h"
int
diff --git a/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/left_padded.cc b/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/left_padded.cc
index 711ce35b6e45..9acc24560648 100644
--- a/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/left_padded.cc
+++ b/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/left_padded.cc
@@ -1,5 +1,5 @@
// { dg-do run { target c++26 } }
-// { dg-timeout-factor 2 }
+// { dg-timeout-factor 4 }
#include "testcases.h"
int
diff --git a/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/right.cc b/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/right.cc
index 255707210721..178fe3e55a4f 100644
--- a/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/right.cc
+++ b/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/right.cc
@@ -1,4 +1,5 @@
// { dg-do run { target c++26 } }
+// { dg-timeout-factor 4 }
#include "testcases.h"
int
diff --git a/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/right_padded.cc b/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/right_padded.cc
index 24ed6cb7d62f..7548d87d8b52 100644
--- a/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/right_padded.cc
+++ b/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/right_padded.cc
@@ -1,5 +1,5 @@
// { dg-do run { target c++26 } }
-// { dg-timeout-factor 2 }
+// { dg-timeout-factor 4 }
#include "testcases.h"
int
diff --git a/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/stride.cc b/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/stride.cc
index 19451d7f954e..3709a75da0b6 100644
--- a/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/stride.cc
+++ b/libstdc++-v3/testsuite/23_containers/mdspan/submdspan/selections/stride.cc
@@ -1,4 +1,5 @@
// { dg-do run { target c++26 } }
+// { dg-timeout-factor 4 }
#include "testcases.h"
int
More information about the Libstdc++-cvs
mailing list