Tolerate half-hour timezones.
authorAlan Modra <amodra@gmail.com>
Fri, 30 Jul 2010 06:56:17 +0000 (16:26 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Fri, 30 Jul 2010 06:56:17 +0000 (16:26 +0930)
From-SVN: r162705

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

index 4dd9b5ecae7a40d550d93053ff0ad5cedbd4258b..66a08b3cc41d17eb3fbf029b33bbe71fc06200db 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 9babbaf1e5d8a60e99bcda25129df215ccf34e97..cdbb973356b117a1edec402a9e49666e60d17628 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 870f011692e5d4bf35fe5dce0789dbc315facf0f..c1480b7235610c711a65d07d7b63a0c9fe4dd972 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