From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8930 invoked by alias); 18 Feb 2015 16:32:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 8890 invoked by uid 48); 18 Feb 2015 16:32:31 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/65107] FAIL: gfortran.dg/eof_4.f90, runtime error: File 'test.dat' already exists Date: Wed, 18 Feb 2015 16:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg02026.txt.bz2 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 ...