]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
modula2: Increase linking test timeouts for slower targets
authorGaius Mulley <gaiusmod2@gmail.com>
Thu, 28 Sep 2023 18:07:04 +0000 (19:07 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Thu, 28 Sep 2023 18:07:04 +0000 (19:07 +0100)
This patch introduces missing timeout handling for
pimlib-base-run-pass.exp and increases the timeout value
for larger projects which link (necessary for slower targets).

gcc/testsuite/ChangeLog:

* gm2/coroutines/pim/run/pass/coroutines-pim-run-pass.exp:
Add load_lib timeout-dg.exp and increase timeout to 60
seconds.
* gm2/pimlib/base/run/pass/pimlib-base-run-pass.exp: Add
load_lib timeout-dg.exp and increase timeout to 60 seconds.
* gm2/projects/iso/run/pass/halma/projects-iso-run-pass-halma.exp:
Increase timeout to 45 seconds.
* gm2/switches/whole-program/pass/run/switches-whole-program-pass-run.exp:
Add load_lib timeout-dg.exp and increase timeout to 120 seconds.
Remove unnecessary compile of mystrlib.mod.
* gm2/iso/run/pass/iso-run-pass.exp: Add load_lib
timeout-dg.exp and set timeout to 60 seconds.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/testsuite/gm2/coroutines/pim/run/pass/coroutines-pim-run-pass.exp
gcc/testsuite/gm2/iso/run/pass/iso-run-pass.exp
gcc/testsuite/gm2/pimlib/base/run/pass/pimlib-base-run-pass.exp
gcc/testsuite/gm2/projects/iso/run/pass/halma/projects-iso-run-pass-halma.exp
gcc/testsuite/gm2/switches/whole-program/pass/run/switches-whole-program-pass-run.exp

index 92ed8d8b8ef55fe81ba3c01c13adb3cf03a34bc6..3c1d9a14d1670ca8e038cdc6b154caa68e40d498 100644 (file)
@@ -30,8 +30,8 @@ set gm2src ${srcdir}/../gm2
 
 gm2_init_cor ""
 
-# We should be able to compile, link or run in 15 seconds.
-gm2_push_timeout 15
+# We should be able to compile, link or run in 20 seconds.
+gm2_push_timeout 20
 
 
 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.mod]] {
index 09d04ee910d6c7fa6a32b04006b7d4bbc4d8e2e7..1a64f7e3e1b90ffe3040b6d9924aff8ea9857963 100644 (file)
@@ -23,10 +23,14 @@ if $tracelevel then {
 
 # load support procs
 load_lib gm2-torture.exp
+load_lib timeout-dg.exp
 
 gm2_init_iso "${srcdir}/gm2/iso/run/pass" -fsoft-check-all
 gm2_link_obj fileio.o
 
+# We should be able to compile, link or run in 60 seconds.
+gm2_push_timeout 60
+
 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 {
@@ -38,3 +42,5 @@ foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.mod]] {
        gm2-torture-execute $testcase "" "pass"
     }
 }
+
+gm2_pop_timeout
index 79640c2db4d9f9cd579dc48e351406e7dd6ccdee..d1e8e422090103dd4755c58ff65cf11e915cd890 100644 (file)
@@ -24,13 +24,14 @@ if $tracelevel then {
 
 # load support procs
 load_lib gm2-torture.exp
+load_lib timeout-dg.exp
 
 set gm2src ${srcdir}/../m2
 
 gm2_init_pim ""
 
-# We should be able to compile, link or run in 20 seconds.
-gm2_push_timeout 20
+# We should be able to compile, link or run in 60 seconds.
+gm2_push_timeout 60
 
 foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.mod]] {
     # If we're only testing specific files and this isn't one of them, skip it.
index faec3f92902cdae417528a6dc8620de252734f65..22127561cbca38cf8faec799c676e60d8ad97dbf 100644 (file)
@@ -29,6 +29,11 @@ set gm2src ${srcdir}/../m2
 
 gm2_init_iso ""
 
+# We should be able to compile, link or run in 45 seconds even on a
+# really slow host/target.
+
+gm2_push_timeout 45
+
 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 +42,5 @@ foreach testcase [lsort [glob -nocomplain $srcdir/$subdir/*.mod]] {
 
     gm2-torture-execute $testcase "" "pass"
 }
+
+gm2_pop_timeout
index aa46c35f93a8fa090391379b6d334b6049132ad5..5013c500fee016c50cc7d84f1daf09a73b0eaed2 100644 (file)
@@ -23,16 +23,16 @@ if $tracelevel then {
 
 # load support procs
 load_lib gm2-torture.exp
+load_lib timeout-dg.exp
 
 gm2_init_pim "${srcdir}/gm2/switches/whole-program/run/pass" -fm2-whole-program
-gm2_push_timeout 60
+gm2_push_timeout 120
 
 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 {
        continue
     }
-    gm2_target_compile $srcdir/$subdir/mystrlib.mod mystrlib.o object "-g -O3 -I$srcdir/$subdir/"
     gm2-torture $testcase
 }