From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15508 invoked by alias); 23 May 2007 13:52:34 -0000 Received: (qmail 15461 invoked by uid 48); 23 May 2007 13:52:20 -0000 Date: Wed, 23 May 2007 13:52:00 -0000 Subject: [Bug testsuite/32057] New: Random failure on gfortran.dg/secnds.f X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hjl at lucon dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-05/txt/msg02036.txt.bz2 I got random failure on gfortran.dg/secnds.f, which has t1 = secnds (0.0) call date_and_time (dum1, dum2, dum3, values) t1a = secnds (0.0) dat1 = 0.001*real (values(8)) + real (values(7)) + & 60.0*real (values(6)) + 3600.0* real (values(5)) if (((dat1 - t1) < 0.) .or. ((dat1 - t1) > (t1a - t1))) call abort () do j=1,10000 do i=1,10000 end do end do t2a = secnds (t1a) call date_and_time (dum1, dum2, dum3, values) t2 = secnds (t1) dat2 = 0.001*real (values(8)) + real (values(7)) + & 60.0*real (values(6)) + 3600.0* real (values(5)) if (((dat2 - dat1) < t2a) .or. ((dat2 - dat1) > t2)) call abort () I assume the dummy loop is used for delay. I don't think it is that reliable. Can't we use sleep here? -- Summary: Random failure on gfortran.dg/secnds.f Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hjl at lucon dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32057