[Bug fortran/38956] tests gfortran.dg/chmod_{1,2,3}.f90 fails on i686-pc-cygwin
billingd at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jan 29 22:15:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list