From: Alan Modra Date: Fri, 30 Jul 2010 06:56:17 +0000 (+0930) Subject: Tolerate half-hour timezones. X-Git-Tag: releases/gcc-4.6.0~5324 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=009ba7f5a34b7b2b9a9a45178ab7f80ad983b95b;p=thirdparty%2Fgcc.git Tolerate half-hour timezones. From-SVN: r162705 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4dd9b5ecae7a..66a08b3cc41d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-07-30 Alan Modra + + * gfortran.dg/ltime_gmtime_1.f90: Tolerate half-hour timezones. + * gfortran.dg/ltime_gmtime_2.f90: Likewise. + 2010-07-29 Tobias Burnus PR fortran/45087 diff --git a/gcc/testsuite/gfortran.dg/ltime_gmtime_1.f90 b/gcc/testsuite/gfortran.dg/ltime_gmtime_1.f90 index 9babbaf1e5d8..cdbb973356b1 100644 --- a/gcc/testsuite/gfortran.dg/ltime_gmtime_1.f90 +++ b/gcc/testsuite/gfortran.dg/ltime_gmtime_1.f90 @@ -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 diff --git a/gcc/testsuite/gfortran.dg/ltime_gmtime_2.f90 b/gcc/testsuite/gfortran.dg/ltime_gmtime_2.f90 index 870f011692e5..c1480b723561 100644 --- a/gcc/testsuite/gfortran.dg/ltime_gmtime_2.f90 +++ b/gcc/testsuite/gfortran.dg/ltime_gmtime_2.f90 @@ -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