This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: chmod_1, chmod_2, chmod_3 and lrshift_1


Hi Jack,

The chmod_1, chmod_2, chmod_3, stat_1 and stat_2 tests all also
fail if the testsuite is run through sudo. That is if you compile
any of those test and do...

sudo ./a.out

...they will fail. I don't know what the gcc policy is on this but
these are the first set of tests in gcc to fail on Darwin when the
make check is run from a terminal where the user has done 'sudo csh'.

I thought I had replied to your original mail to the list describing the problem, but apparently I only meant to do it. So here it is...

Files created under invocation via "sudo" are created with the
original user's GID, which is different from the effective group ID at
execution. I will try to add a special check for that case (sudo
execution) in all these testcases, so that running a "sudo make check"
doesn't show failures.

Unfortunately, I don't have much time right now. I'll have a window of
opportunity in a week, and will try to do it then. I filed PR 28610
(and CCed you) to be sure I don't forget about this.

FX


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]