mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-20 12:41:17 +08:00
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:
parent
fea4e7a1e9
commit
bcaaa78047
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user