OSDN Git Service

Tolerate half-hour timezones.
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Jul 2010 06:56:17 +0000 (06:56 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Jul 2010 06:56:17 +0000 (06:56 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162705 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/ltime_gmtime_1.f90
gcc/testsuite/gfortran.dg/ltime_gmtime_2.f90

index 4dd9b5e..66a08b3 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-30  Alan Modra  <amodra@gmail.com>
+
+       * gfortran.dg/ltime_gmtime_1.f90: Tolerate half-hour timezones.
+       * gfortran.dg/ltime_gmtime_2.f90: Likewise.
+
 2010-07-29  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/45087
index 9babbaf..cdbb973 100644 (file)
@@ -5,5 +5,5 @@
   t = time()
   call ltime(t,x)
   call gmtime(t,y)
-  if (x(1) /= y(1) .or. x(2) /= y(2)) call abort
+  if (x(1) /= y(1) .or. mod(x(2),30) /= mod(y(2),30)) call abort
   end
index 870f011..c1480b7 100644 (file)
@@ -5,5 +5,5 @@
   t = time()
   call ltime(t,x)
   call gmtime(t,y)
-  if (x(1) /= y(1) .or. x(2) /= y(2)) call abort
+  if (x(1) /= y(1) .or. mod(x(2),30) /= mod(y(2),30)) call abort
   end