[gfortran] gfortran.dg/dev_null.f90
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri May 27 15:33:00 GMT 2005
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
More information about the Gcc-patches
mailing list