This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to add timeout to Ada tests on Linux/ia64?
On Thu, 2004-03-25 at 09:45, Arnaud Charlet wrote:
> > The following change worked for me to stop some of the
> > tasking tests failing or hanging:
> > The One_Second constant is multiplied by all the delays
> > in the tasking tests. I found on a loaded system the
> > supplied constant caused problems, I have had none since changing.
> > The tests still run 10x "realtime".
"realtime" means nothing nowadays for ACATS which was designed for very
old machines. There are lots of 2 or 5 minutes delays in ACATS.
> Thanks for the hint, that's an interesting likely candidate for some
> 'random' c9 failure indeed.
>
> I guess Laurent Guerby was a little bit too optimistic when he changed the
> value of this constant :-)
I did about 100 runs on an unloaded P3 1GHz before setting One_Second
to this value.
> > --- gcc/testsuite/ada/acats/support/impdef.a 27 Oct 2003 11:28:49 -0000 1.1
> > +++ gcc/testsuite/ada/acats/support/impdef.a 25 Mar 2004 07:59:10 -0000
> > @@ -338,7 +338,7 @@
> >
> > --=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====-=====--
> >
> > - One_Second : constant Duration := 0.001;
> > + One_Second : constant Duration := 0.1;
>
> Change looks good to me, I'd probably consider integrating it.
>
> Laurent, could you give some figures on the time impact of such a
> change ? Maybe 0.01 would be a sufficient compromise ?
I think that 0.01 should do the work. It would help
if people seeing intermitent failures would report
them on this list.
BTW, I believe I still missed a few delays, I'll do another pass
one of these days :).
Laurent