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
This commit is contained in:
Jerry DeLisle 2007-08-03 02:20:33 +00:00
parent fea4e7a1e9
commit bcaaa78047
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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()