public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/32057]  New: Random failure on gfortran.dg/secnds.f
@ 2007-05-23 13:52 hjl at lucon dot org
  2007-05-23 14:35 ` [Bug testsuite/32057] " dominiq at lps dot ens dot fr
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: hjl at lucon dot org @ 2007-05-23 13:52 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-06-25  3:03 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-23 13:52 [Bug testsuite/32057] New: Random failure on gfortran.dg/secnds.f hjl at lucon dot org
2007-05-23 14:35 ` [Bug testsuite/32057] " dominiq at lps dot ens dot fr
2007-05-23 15:06 ` kargl at gcc dot gnu dot org
2007-05-28 19:53 ` dominiq at lps dot ens dot fr
2007-05-28 22:15 ` tkoenig at gcc dot gnu dot org
2007-05-29 20:25 ` dominiq at lps dot ens dot fr
2007-05-30  2:10 ` jvdelisle at gcc dot gnu dot org
2007-05-30  3:37 ` jvdelisle at gcc dot gnu dot org
2007-05-30 21:35 ` dominiq at lps dot ens dot fr
2007-06-03 17:07 ` pinskia at gcc dot gnu dot org
2007-06-04  8:37 ` pinskia at gcc dot gnu dot org
2007-06-04 16:11 ` pinskia at gcc dot gnu dot org
2007-06-06  0:54 ` jvdelisle at gcc dot gnu dot org
2007-06-06  1:26 ` jvdelisle at gcc dot gnu dot org
2007-06-19 17:11 ` rob1weld at aol dot com
2007-06-20 22:33 ` rob1weld at aol dot com
2007-06-21  1:06 ` jvdelisle at gcc dot gnu dot org
2007-06-25  3:03 ` jvdelisle at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).