public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* [RFC] Decrease default timeout for libstdc++ tests to 6 minutes
@ 2020-11-27 16:13 Jonathan Wakely
  2020-11-27 20:17 ` Christophe Lyon
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Wakely @ 2020-11-27 16:13 UTC (permalink / raw)
  To: libstdc++, gcc-patches

The default for the GCC testsuite is 300, i.e. 5 minutes, which is the
same as the DejaGnu default.

Libstdc++ overrides this to 600, i.e. 10 minutes.

This seems ridiculously long. If any test takes that long on modern
hardware, something is wrong. We've seen this a lot recently with
buggy tests, and waiting for them to FAIL is tedious.

I've already made libstdc++.exp respect the user's setting in
~/.dejagnurc or the global site.exp file. This means anybody testing
on slow simulators or old hardware can choose their own timeout.

I've added dg-timeout-factor to the slowest std::regex tests and have
a patch to do it for the PSTL tests, which both take far too long to
compile. That means you can choose a sensible timeout appropriate for
most tests (e.g. 60 seconds) and not get spurious failures from the
few dozen tests which are just very slow.

I'd like to change the default to 6 minutes. If that goes well, I'd
like to lower it even further.

The main benefit of this will be that buggy tests which hang will get
killed sooner, so we waste less time waiting for the inevitable
timeout.


Here's the proposed patch for completeness:

--- a/libstdc++-v3/testsuite/lib/libstdc++.exp
+++ b/libstdc++-v3/testsuite/lib/libstdc++.exp
@@ -248,7 +248,7 @@ proc libstdc++_init { testfile } {
      # Set the default timeout for v3 tests.
      # You can override this in ~/.dejagnurc or a .exp file named by $DEJAGNU.
      if {![info exists tool_timeout]} {
-      set tool_timeout 600
+      set tool_timeout 360
      }

      # Default settings.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-02 12:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-27 16:13 [RFC] Decrease default timeout for libstdc++ tests to 6 minutes Jonathan Wakely
2020-11-27 20:17 ` Christophe Lyon
2020-11-30 14:58   ` Jonathan Wakely
2020-12-01  9:45     ` Christophe Lyon
2020-12-01 10:52       ` Jonathan Wakely
2020-12-02 12:35         ` 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).