This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gfortran,patch] add target to gfortran.dg/dev_null.f90
- From: FX Coudert <fxcoudert at gmail dot com>
- To: gfortran <fortran at gcc dot gnu dot org>, patch <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 18 Jun 2005 10:54:45 +0200
- Subject: [gfortran,patch] add target to gfortran.dg/dev_null.f90
In current state, gfortran.dg/dev_null.f90 is FAILing on all BSD
platforms and a few other unices (HP UX, e.g.). The related bug is low
priority and it seemed a bit heavy-handed to define an effective target
for that until it is fixed. So, I added a target so that test runs only
on OS where it is known to work: linux and solaris.
OK for mainline and 4.0?
FX
2005-06-18 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* gfortran.dg/dev_null.f90: Run test only on linux and solaris.
Index: gcc/testsuite/gfortran.dg/dev_null.f90
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gfortran.dg/dev_null.f90,v
retrieving revision 1.1
diff -u -3 -p -r1.1 dev_null.f90
--- gcc/testsuite/gfortran.dg/dev_null.f90 11 May 2005 10:34:04 -0000 1.1
+++ gcc/testsuite/gfortran.dg/dev_null.f90 18 Jun 2005 08:49:43 -0000
@@ -1,4 +1,7 @@
-! { dg-do run }
+! { dg-do run { target *-*-linux* *-*-solaris* } }
+! This test currently only runs on systems where using ftruncate on
+! /dev/null fails (errno set to EINVAL). See PR 21593 for details.
+!
! pr19478 read from /dev/null
! Thomas.Koenig@online.de
character*20 foo