Commit bcaaa780 by Jerry DeLisle

opem_errors.f90: Revise test to pass when run under sudo.

2007-08-02  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	* gfortran.dg/opem_errors.f90: Revise test to pass when run under sudo.

From-SVN: r127176
parent fea4e7a1
2007-08-02 Jerry DeLisle <jvdelisle@gcc.gnu.org>
* gfortran.dg/opem_errors.f90: Revise test to pass when run under sudo.
2007-08-02 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/32770
......@@ -25,7 +25,7 @@ if (msg /= "'./' is a directory" .and. msg /= "Invalid argument") call abort()
open(77,file=n,status="new")
i = chmod(n, "-w")
if (i == 0) then
if (i == 0 .and. getuid() /= 0) then
close(77, status="keep")
open(77,file=n, iomsg=msg, iostat=i, action="write")
if (i == 0) call abort()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment