diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-02-23 22:36:54 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-02-23 22:36:54 +0000 |
commit | 88a3ea34080ad3087a8191fbf479543153175d59 (patch) | |
tree | 34eaec34d3588e09f9a77abba776266f124dc823 /gcc/testsuite/gfortran.dg/open_errors.f90 | |
parent | 25e15aaed275cdfef34b3ee6eb3cb4b43a48d44f (diff) | |
parent | e65055a558093bd4fc0b1b0024b7814cc187b8e8 (diff) | |
download | gccgo.tar.gz |
Merge from trunk revision 257954.gccgo
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gccgo@257955 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gfortran.dg/open_errors.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/open_errors.f90 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/testsuite/gfortran.dg/open_errors.f90 b/gcc/testsuite/gfortran.dg/open_errors.f90 index 23d4b3d807b..f964338c0ec 100644 --- a/gcc/testsuite/gfortran.dg/open_errors.f90 +++ b/gcc/testsuite/gfortran.dg/open_errors.f90 @@ -15,26 +15,26 @@ if (.not.there) then endif msg="" open(77,file=n,status="new", iomsg=msg, iostat=i) -if (i == 0) call abort() -if (msg(1:33) /= "Cannot open file 'temptestfile': ") call abort() +if (i == 0) STOP 1 +if (msg(1:33) /= "Cannot open file 'temptestfile': ") STOP 2 open(77,file=n,status="old") close(77, status="delete") open(77,file=n,status="old", iomsg=msg, iostat=i) -if (i == 0) call abort() -if (msg(1:33) /= "Cannot open file 'temptestfile': ") call abort() +if (i == 0) STOP 3 +if (msg(1:33) /= "Cannot open file 'temptestfile': ") STOP 4 open(77,file="./", iomsg=msg, iostat=i) if (msg(1:23) /= "Cannot open file './': " & - .and. msg /= "Invalid argument") call abort() + .and. msg /= "Invalid argument") STOP 5 open(77,file=n,status="new") i = chmod(n, "-w") 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() - if (msg(1:33) /= "Cannot open file 'temptestfile': ") call abort() + if (i == 0) STOP 6 + if (msg(1:33) /= "Cannot open file 'temptestfile': ") STOP 7 endif i = chmod(n,"+w") |