+2006-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * gfortran.dg/direct_io_1.f90, gfortran.dg/iostat_2.f90,
+ gfortran.dg/open_new.f90, gfortran.dg/open_readonly_1.f90,
+ gfortran.dg/pr16935.f90, gfortran.dg/pr20954.f,
+ gfortran.dg/read_many_1.f, gfortran.dg/unf_io_convert_2.f90,
+ gfortran.fortran-torture/execute/direct_io.f90,
+ gfortran.fortran-torture/execute/inquire_2.f90,
+ gfortran.fortran-torture/execute/inquire_4.f90,
+ gfortran.fortran-torture/execute/list_read_1.f90,
+ gfortran.fortran-torture/execute/open_replace.f90,
+ gfortran.fortran-torture/execute/slash_edit.f90,
+ gfortran.fortran-torture/execute/unopened_unit_1.f90: Delete
+ temporary files from testcases.
+
2006-03-17 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/26509
n = 1
write(12, rec=n) mt, nt
write(12, rec=n+1) (p(m), m=1, nt)
- close(12)
+ close(12, status='delete')
end program
close(10, status="whatever", iostat=i)
if (i == 0) call abort()
write(17,*) 'foo'
+ close(17, status="delete")
end
close(nout)
open(nout, file="foo.dat", status="new",err=100)
call abort ! This should never happen
-100 continue
+100 call unlink ("foo.dat")
end program main
open (unit=10, file='PR19451.dat', action="read")
write (10,*,err=20) "Hello World"
call abort()
- 20 continue
+ 20 close (10, status='delete')
end program
program bug2
implicit none
open( 1 , file = "str_500.txt", position = "REWIND" )
+ close( 1 , status = "DELETE" )
end
filename = 'input'
open (2,file=filename)
write (line, '(5a16)') (string(i),i=1,5)
+ close (2, status='delete')
end
if (b(2).ne.5) call abort()
if (a(3000).ne.1234) call abort()
if (b(2048).ne.5678) call abort()
+ close(2, status='delete')
end
backspace 10
read (10) j
if (j /= Z'5566770011223344') call abort
+ close (10, status="delete")
end program main
CALL ABORT
ENDIF
ENDDO
+ CLOSE(10,STATUS='DELETE')
STOP
10 CONTINUE
! PRINT*,' ERR= RETURN FROM READ OR WRITE'
OPEN(FILE='CSEQ', UNIT=23)
INQUIRE(FILE='CSEQ',NUMBER=UNIT)
IF (UNIT.NE.23) CALL ABORT
+ CLOSE(UNIT, STATUS='DELETE')
END
! PRINT*,'NEXTREC RETURNED ',J,' EXPECTED 4'
CALL ABORT
ENDIF
+ CLOSE(UNIT=10,STATUS='DELETE')
END
if (x(i,k).ne.y(i,k)) call abort
end do
end do
+ close(nin, status='delete')
end program d
! open with 'REPLACE' creates the file if it does not exist.
PROGRAM iobug
OPEN(UNIT=10,FILE='gfcoutput.txt',status='REPLACE')
+ CLOSE(10,status='DELETE')
END PROGRAM iobug
OPEN(7)
200 FORMAT(I4,///I4)
READ(7,200)I,J
- CLOSE(7)
+ CLOSE(7, STATUS='DELETE')
IF (I.NE.1) CALL ABORT
IF (J.NE.4) CALL ABORT
END
Read(99,*)J
If (J.ne.I) Call abort
End Do
+ Close(99, Status='Delete')
End program