[PATCH][ARM][testsuite] add dg-timeout-factor to handle large tests
Laurent GUERBY
laurent@guerby.net
Sun Jan 4 11:05:00 GMT 2009
The following patch fix all 12 "WARNING: program timed out"
when bootstraping then running the testsuite on a 600 MHz ARM
arm-unknown-linux-gnueabi. Before and after:
http://gcc.gnu.org/ml/gcc-testresults/2009-01/msg00092.html
http://gcc.gnu.org/ml/gcc-testresults/2009-01/msg00294.html
I chose to use "dg-timeout-factor 4.0" and not to conditionalize on
platform since those particular tests are much longer than
others so this may help other platforms as well.
Ok to commit?
Laurent
2009-01-04 Laurent GUERBY <laurent@guerby.net>
* gcc.c-torture/compile/20001226-1.c: Generalize
dg-timeout-factor.
* gcc.c-torture/compile/limits-fnargs.c: Add
dg-timeout-factor.
* gcc.dg/20020425-1.c: Likewise.
* gcc.dg/pch/pch.exp: Likewise.
Index: gcc/testsuite/gcc.c-torture/compile/20001226-1.c
===================================================================
--- gcc/testsuite/gcc.c-torture/compile/20001226-1.c (revision 142984)
+++ gcc/testsuite/gcc.c-torture/compile/20001226-1.c (working copy)
@@ -6,9 +6,7 @@
/* { dg-xfail-if "jump beyond 128K not supported" { xtensa*-*-* } { "-O0" } { "" } } */
/* { dg-xfail-if "PR36698" { spu-*-* } { "-O0" } { "" } } */
/* { dg-skip-if "" { m32c-*-* } { "*" } { "" } } */
-/* If list of targets on dg-timeout-factor grows to 3, make it unconditional
- for all targets. */
-/* { dg-timeout-factor 2.0 { target hppa*-*-* } } */
+/* { dg-timeout-factor 4.0 } */
/* This testcase exposed two branch shortening bugs on powerpc. */
Index: gcc/testsuite/gcc.c-torture/compile/limits-fnargs.c
===================================================================
--- gcc/testsuite/gcc.c-torture/compile/limits-fnargs.c (revision 142984)
+++ gcc/testsuite/gcc.c-torture/compile/limits-fnargs.c (working copy)
@@ -1,3 +1,5 @@
+/* { dg-timeout-factor 4.0 } */
+
#define PAR1 int, int, int, int, int, int, int, int, int, int
#define PAR2 PAR1, PAR1, PAR1, PAR1, PAR1, PAR1, PAR1, PAR1, PAR1, PAR1
#define PAR3 PAR2, PAR2, PAR2, PAR2, PAR2, PAR2, PAR2, PAR2, PAR2, PAR2
Index: gcc/testsuite/gcc.dg/20020425-1.c
===================================================================
--- gcc/testsuite/gcc.dg/20020425-1.c (revision 142984)
+++ gcc/testsuite/gcc.dg/20020425-1.c (working copy)
@@ -1,5 +1,6 @@
/* PR c/2161: parser stack overflow. */
/* { dg-do compile } */
+/* { dg-timeout-factor 4.0 } */
#define ONE else if (0) { }
#define TEN ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE
Index: gcc/testsuite/gcc.dg/pch/pch.exp
===================================================================
--- gcc/testsuite/gcc.dg/pch/pch.exp (revision 142984)
+++ gcc/testsuite/gcc.dg/pch/pch.exp (working copy)
@@ -44,6 +44,7 @@
set testh "largefile.hs"
set f [open $test w]
puts $f "/* { dg-xfail-if \"PR 14940\" { \"i?86-*-solaris2.10\" } { \"*\" } { \"\" } } */"
+puts $f "/* { dg-timeout-factor 4.0 } */"
set v 0
for { set v 0 } { $v < 10000 } { incr v } {
puts $f "#define MACRO_${v} \"1234567890\" \"$v\""
More information about the Gcc-patches
mailing list