This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38956] tests gfortran.dg/chmod_{1,2,3}.f90 fails on i686-pc-cygwin
- From: "billingd at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jan 2009 22:14:51 -0000
- Subject: [Bug fortran/38956] tests gfortran.dg/chmod_{1,2,3}.f90 fails on i686-pc-cygwin
- References: <bug-38956-270@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from billingd at gcc dot gnu dot org 2009-01-29 22:14 -------
Tests gfortran.dg/chmod_2.f90 and gfortran.dg/chmod_3.f90 also fail.
There is also some discussion at
http://gcc.gnu.org/ml/fortran/2009-01/msg00353.html
In each case, the failure is due to the test
i = chmod (n, "a-w")
if (i == 0 .and. getuid() /= 0) then
if (access(n,"w") == 0 .or. access(n,"W") == 0) call abort
end if
The problem is that users with Administrator rights can always
write to files - similar to root on unix - but it is not easy to test for this.
I will prepare a patch that moves the parts that fail to a new test that is
UNSUPPORTED on cygwin.
--
billingd at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|test gfortran.dg/chmod_1.f90|tests
|fails on i686-pc-cygwin |gfortran.dg/chmod_{1,2,3}.f9
| |0 fails on i686-pc-cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38956