This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Testsuite log file change
- From: FX <fxcoudert at gmail dot com>
- To: NightStrike <nightstrike at gmail dot com>
- Cc: Jerry DeLisle <jvdelisle at verizon dot net>, Kai Tietz <ktietz70 at googlemail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Fortran List <fortran at gcc dot gnu dot org>, Danny Smith <dannysmith at clear dot net dot nz>
- Date: Sat, 10 May 2008 20:36:13 +0100
- Subject: Re: Testsuite log file change
- References: <b609cb3b0805092349i6d4faccdp4d04dc3f4bc018a8@mail.gmail.com> <8D7A93FF-6BD7-48A0-8553-D203A98CA5FE@gmail.com> <7DB609DF-E856-48FF-B8AD-B64C41A074F8@gmail.com> <b609cb3b0805101233t620f8034g4f5a1ac3b1a77652@mail.gmail.com>
Committed after testing on x86_64-linux, following Danny's patch for
gfortran.dg/dev_null.f90.
2008-05-10 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* write_to_null.f90: Rename to write_to_null.F90.
* write_to_null.F90: On Windows, "nul" is the equivalent of the
Unix /dev/null.
Index: testsuite/gfortran.dg/write_to_null.F90
===================================================================
--- testsuite/gfortran.dg/write_to_null.F90 (revision 135088)
+++ testsuite/gfortran.dg/write_to_null.F90 (working copy)
@@ -1,8 +1,15 @@
! { dg-do run }
! pr18983
! could not write to /dev/null
+
+#if defined _WIN32
+#define DEV_NULL "nul"
+#else
+#define DEV_NULL "/dev/null"
+#endif
+
integer i
- open(10,file="/dev/null")
+ open(10,file=DEV_NULL)
do i = 1,100
write(10,*) "Hello, world"
end do