This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran] gfortran.dg/dev_null.f90
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: FX <fxcoudert at gmail dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 27 May 2005 08:13:42 -0700
- Subject: Re: [gfortran] gfortran.dg/dev_null.f90
- References: <19c433eb05052701566dea00c3@mail.gmail.com>
On Fri, May 27, 2005 at 10:56:36AM +0200, FX wrote:
> Testcase gfortran.dg/dev_null.f90 relies on a semantic for /dev/null
> that is not correct for all Unices: it fails on all non-POSIX
> complying /dev/null (all BSD, including darwin, and hpux).
> However, on the OS where a POSIX behavior is expected (linux and
> solaris, from what I've seen so far), this is a useful test.
Can you give a little more detail of the semantics? AFAIK,
FreeBSD's /dev/null complies with
http://www.opengroup.org/onlinepubs/009695399/toc.htm
> I propose to add a target restriction to this test, so that it is run
> only on *-*-linux and *-*-solaris*. Are you OK with that (for both
> mainline and 4.0)? Any idea about others targets to add to the list?
I think the test should be XFAIL'd because it appears that we
are not properly checking whether a read from a file succeeds of
fails.
--
Steve