This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] gfortran.dg/dev_null.f90
- From: Paul Brook <paul at codesourcery dot com>
- To: fortran at gcc dot gnu dot org,FX <fxcoudert at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 27 May 2005 14:37:11 +0100
- Subject: Re: [gfortran] gfortran.dg/dev_null.f90
- References: <19c433eb05052701566dea00c3@mail.gmail.com>
On Friday 27 May 2005 09:56, 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.
>
> 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?
You could add a "devnull" effective target.
This could then either have a hardcoded list of targets, or [preferably] some
code to test for proper operation of /dev/null.
Also note that the proper triplet for linux is *-*-linux*. Your triplet will
miss things like arm-none-linux-gnueabi.
Paul