[Bug testsuite/65107] FAIL: gfortran.dg/eof_4.f90, runtime error: File 'test.dat' already exists
vries at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 18 16:32:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65107
--- Comment #2 from vries at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #1)
> > But cleaning after itself does not guarantee that this failure is fixed.
> > We need to ensure that all tests that use test.dat clean up after themselves.
>
> AFAICT this is done for normal execution, but not if the test aborts.
You're right. The test.dat I see, is from gfortran.dg/read_eof_8.f90. Something
like this will probably fix that:
...
diff --git a/gcc/testsuite/gfortran.dg/read_eof_8.f90
b/gcc/testsuite/gfortran.dg/read_eof_8.f90
index 7436a2b..86228da 100644
--- a/gcc/testsuite/gfortran.dg/read_eof_8.f90
+++ b/gcc/testsuite/gfortran.dg/read_eof_8.f90
@@ -20,6 +20,7 @@ program test
enddo
call abort
100 if (k /= 5) call abort
+ close(25, status="delete")
stop
101 call abort
end program test
...
More information about the Gcc-bugs
mailing list