From: Jerry DeLisle Date: Tue, 17 Jun 2008 01:05:11 +0000 (+0000) Subject: re PR testsuite/36544 (fseek.f90 does not correctly account for newline lengths) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=151d7522247c10ac4959f72883316943d5060bf9;p=gcc.git re PR testsuite/36544 (fseek.f90 does not correctly account for newline lengths) 2008-06-16 Jerry DeLisle PR fortran/36544 * gfortran.dg/fseek.f90: Adjust test conditions for variable newline. From-SVN: r136856 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e97e60b6ebf..613364dc098 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-06-16 Jerry DeLisle + + PR fortran/36544 + * gfortran.dg/fseek.f90: Adjust test conditions for variable newline. + 2008-06-16 Ira Rosen PR tree-optimization/36493 diff --git a/gcc/testsuite/gfortran.dg/fseek.f90 b/gcc/testsuite/gfortran.dg/fseek.f90 index 2bf2e0dc8dd..2649063ac59 100644 --- a/gcc/testsuite/gfortran.dg/fseek.f90 +++ b/gcc/testsuite/gfortran.dg/fseek.f90 @@ -17,16 +17,16 @@ PROGRAM test_fseek IF (FTELL(fd) /= 11 + newline_length) CALL abort() ! move backward from current position - CALL FSEEK(fd, -12, SEEK_CUR, ierr) + CALL FSEEK(fd, -11 - newline_length, SEEK_CUR, ierr) IF (ierr /= 0 .OR. FTELL(fd) /= 0) CALL abort() ! move to negative position (error) CALL FSEEK(fd, -1, SEEK_SET, ierr) IF (ierr == 0 .OR. FTELL(fd) /= 0) CALL abort() - ! move forward from end (12 + 10) + ! move forward from end (11 + 10 + newline) CALL FSEEK(fd, 10, SEEK_END, ierr) - IF (ierr /= 0 .OR. FTELL(fd) /= 22) CALL abort() + IF (ierr /= 0 .OR. FTELL(fd) /= 21 + newline_length) CALL abort() ! set position (0) CALL FSEEK(fd, 0, SEEK_SET, ierr)