public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Gaius Mulley <gaius@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-5151] Recalibrate the timeouts for the larger code tests
Date: Fri, 13 Jan 2023 17:17:55 +0000 (GMT)	[thread overview]
Message-ID: <20230113171755.4C5993858C39@sourceware.org> (raw)

https://gcc.gnu.org/g:325a79b2c629bb7a2271dfebd678a27afcef4d01

commit r13-5151-g325a79b2c629bb7a2271dfebd678a27afcef4d01
Author: Gaius Mulley <gaiusmod2@gmail.com>
Date:   Fri Jan 13 17:17:36 2023 +0000

    Recalibrate the timeouts for the larger code tests
    
    Some of the larger code tests timeout when -O3 is given.
    This patch increase the map and pimlib-base-run-pass tests.
    
    gcc/testsuite/ChangeLog:
    
            * gm2/examples/map/pass/examples-map-pass.exp:
            Call gm2_push_timeout 30 before foreach testcase.
            Call gm2_pop_timeout after the foreach statement.
            * gm2/pimlib/base/run/pass/pimlib-base-run-pass.exp:
            Call gm2_push_timeout 20 before foreach testcase.
            Call gm2_pop_timeout after the foreach statement.
    
    Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>

Diff:
---
 gcc/testsuite/gm2/examples/map/pass/examples-map-pass.exp       | 5 +++++
 gcc/testsuite/gm2/pimlib/base/run/pass/pimlib-base-run-pass.exp | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/gcc/testsuite/gm2/examples/map/pass/examples-map-pass.exp b/gcc/testsuite/gm2/examples/map/pass/examples-map-pass.exp
index 4c9ea5bf188..79841e8be6b 100644
--- a/gcc/testsuite/gm2/examples/map/pass/examples-map-pass.exp
+++ b/gcc/testsuite/gm2/examples/map/pass/examples-map-pass.exp
@@ -27,6 +27,9 @@ load_lib gm2-torture.exp
 
 gm2_init_pim "$srcdir/$subdir"
 
+# We should be able to compile, link or run in 30 seconds.
+gm2_push_timeout 30
+
 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.mod]] {
     # If we're only testing specific files and this isn't one of them, skip it.
     if ![runtest_file_p $runtests $testcase] then {
@@ -35,3 +38,5 @@ foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.mod]] {
 
     gm2-torture $testcase
 }
+
+gm2_pop_timeout
diff --git a/gcc/testsuite/gm2/pimlib/base/run/pass/pimlib-base-run-pass.exp b/gcc/testsuite/gm2/pimlib/base/run/pass/pimlib-base-run-pass.exp
index ba0d677b931..82d055b7602 100644
--- a/gcc/testsuite/gm2/pimlib/base/run/pass/pimlib-base-run-pass.exp
+++ b/gcc/testsuite/gm2/pimlib/base/run/pass/pimlib-base-run-pass.exp
@@ -29,6 +29,9 @@ set gm2src ${srcdir}/../m2
 
 gm2_init_pim "${srcdir}/gm2/pimlib/base/run/pass"
 
+# We should be able to compile, link or run in 20 seconds.
+gm2_push_timeout 20
+
 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.mod]] {
     # If we're only testing specific files and this isn't one of them, skip it.
     if ![runtest_file_p $runtests $testcase] then {
@@ -37,3 +40,5 @@ foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.mod]] {
 
     gm2-torture-execute $testcase "" "pass"
 }
+
+gm2_pop_timeout

                 reply	other threads:[~2023-01-13 17:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230113171755.4C5993858C39@sourceware.org \
    --to=gaius@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).