[gfortran] gfortran.dg/dev_null.f90

Paul Brook paul@codesourcery.com
Fri May 27 13:37:00 GMT 2005


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



More information about the Fortran mailing list