diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fe19024a010..7f6a9b7ff6a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2007-08-02 Jerry DeLisle + + * gfortran.dg/opem_errors.f90: Revise test to pass when run under sudo. + 2007-08-02 Thomas Koenig PR fortran/32770 diff --git a/gcc/testsuite/gfortran.dg/open_errors.f90 b/gcc/testsuite/gfortran.dg/open_errors.f90 index 1f5c1c08d5b..a8d5c2b10d7 100644 --- a/gcc/testsuite/gfortran.dg/open_errors.f90 +++ b/gcc/testsuite/gfortran.dg/open_errors.f90 @@ -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()