[gfortran,patch] add target to gfortran.dg/dev_null.f90

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[gfortran,patch] add target to gfortran.dg/dev_null.f90

FX Coudert
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?


2005-06-18  Francois-Xavier Coudert  <[hidden email]>

        * 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
 ! [hidden email]
       character*20 foo