Tests gfortran.dg/chmod_{1,2,3}.f90 fail on cygwin
Tobias Burnus
burnus@net-b.de
Fri Jan 30 08:01:00 GMT 2009
Hi David,
David Billinghurst wrote:
> 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)
[...]
> 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?
Well, obviously the latter - the more testing the better ;-)
However, shouldn't the "getuid() /= 0" test prevent the Cygwin problem
or doesn't adminstrator yield getuid() == 0 ? The adminstrator item is
something you have not mention mentioned in the bugreport. And I don't
understand comment 2 there: You create a read-only file and check then
with the access function (in C) whether you can write to it. The answer
is "-1" which means you cannot write to it. That looks pretty
consistent, but you wrote: "looks like a problem with the access
function on cygwin-1.7". Is there something obvious which eludes me?
Tobias
More information about the Fortran
mailing list