This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Bump up stdio bug22 timeout from 30 seconds to 60 seconds


On Thu, May 17, 2012 at 10:41 AM, Chris Metcalf <cmetcalf@tilera.com> wrote:
> The older Tilera platform (tilepro) needs just a hair over 30 seconds
> to run this on one core.
> ---
> I'll push this one as pretty self-evident. ÂThanks.
>
> ÂChangeLog      Â|  Â2 ++
> Âstdio-common/bug22.c | Â Â2 +-
> Â2 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/ChangeLog b/ChangeLog
> index 8970d74..470fb35 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -0,0 +1,4 @@
> +2012-05-17 ÂChris Metcalf Â<cmetcalf@tilera.com>
> +
> + Â Â Â * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
> +
> diff --git a/stdio-common/bug22.c b/stdio-common/bug22.c
> index efd9501..b26399a 100644
> --- a/stdio-common/bug22.c
> +++ b/stdio-common/bug22.c
> @@ -51,6 +51,6 @@ do_test (void)
> Â return ret != -1 || errno != EOVERFLOW;
> Â}
>
> -#define TIMEOUT 30
> +#define TIMEOUT 60
> Â#define TEST_FUNCTION do_test ()
> Â#include "../test-skeleton.c"
> --
> 1.6.5.2
>

You can change this in a a tile specific Makefile doing something like
the following:

ifeq ($(subdir),stdio-common)
# Scale the regular 30 second TIMEOUT by 2x on Tile
bug22-ENV = TIMEOUTFACTOR="2"
fi

Ryan S. Arnold


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]