This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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 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


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