]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/testsuite/gm2/coroutines/pim/run/pass/coroutines-pim-run-pass.exp
testsuite: extend timeout into all gm2 tests
authorGaius Mulley <gaiusmod2@gmail.com>
Fri, 13 Jan 2023 01:08:43 +0000 (01:08 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Fri, 13 Jan 2023 01:08:43 +0000 (01:08 +0000)
commit66e97803490ef55770cee7db81eade2d05c4ea0a
tree96be4a0acb7598455b7f6325fada560d078c49d0
parentecd637e9761485437498f311ddf09af5286d6d0f
testsuite: extend timeout into all gm2 tests

Add timeout capability to gm2-torture.exp.  Also add a simple
gm2_push_timeout/gm2_pop timeout facility and calibrate all
tests to use the default of 10 seconds.  15 seconds (for the
coroutine tests) and 60 seconds for whole program optimization.

gcc/testsuite/ChangeLog:

* gm2/coroutines/pim/run/pass/coroutines-pim-run-pass.exp
(timeout-dg.exp): Load.
Call gm2_push_timeout 15.
Call gm2_pop_timeout at the end.
* gm2/link/min/pass/link-min-pass.exp: Set path
argument to "".
* gm2/switches/whole-program/pass/run/switches-whole-program-pass-run.exp:
Call gm2_push_timeout 60.
Call gm2_pop_timeout at the end.
* lib/gm2-torture.exp (gm2_previous_timeout): Set to 10 or
individual_timeout.
Configure dejagnu to timeout for 10 seconds.
(gm2_push_timeout): New proc.
(gm2_pop_timeout): New proc.
* lib/gm2.exp (gm2_previous_timeout): Set to 10 or
individual_timeout.
Configure dejagnu to timeout for 10 seconds.
(gm2_push_timeout): New proc.
(gm2_pop_timeout): New proc.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/testsuite/gm2/coroutines/pim/run/pass/coroutines-pim-run-pass.exp
gcc/testsuite/gm2/link/min/pass/link-min-pass.exp
gcc/testsuite/gm2/switches/whole-program/pass/run/switches-whole-program-pass-run.exp
gcc/testsuite/lib/gm2-torture.exp
gcc/testsuite/lib/gm2.exp