This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran] gfortran.dg/dev_null.f90


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]