Tests gfortran.dg/chmod_{1,2,3}.f90 fail on cygwin
David Billinghurst
dbcygwin@gmail.com
Thu Jan 29 14:45:00 GMT 2009
Tests gfortran.dg/chmod_{1,2,3}.f90 fail for me on cygwin-1.7 with
current CVS (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38956)
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.
The simple fix is to mark them as XFAIL or UNSUPPORTED under cygwin.
However, I would prefer to cut out the failing portions of the test - so
that the existing tests pass under cygwin - and create one (or two) new
tests for chmod(n,"a-w") that are UNSUPPORTED under cygwin.
Which approach is more appropriate?
David
More information about the Fortran
mailing list