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

Ryan S. Arnold ryan.arnold@gmail.com
Thu May 17 17:23:00 GMT 2012


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



More information about the Libc-alpha mailing list