summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-26 07:44:09 +0000
committerkrebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-26 07:44:09 +0000
commit875ba44dc9683affa6bfec69626ad82b3a2fec15 (patch)
tree0777858fb50904934b655b1562871ba549f6eb9f
parentabb3caf78b79af0d44987dc4f2d7632d7dde4a66 (diff)
downloadppe42-gcc-875ba44dc9683affa6bfec69626ad82b3a2fec15.tar.gz
ppe42-gcc-875ba44dc9683affa6bfec69626ad82b3a2fec15.zip
2007-04-26 Wolfgang Gellerich <gellerich@de.ibm.com>
* gfortran.dg/open_errors.f90: Added if statements checking the value of iostat. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124182 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gfortran.dg/open_errors.f903
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4667c9da9b7..4310a1cf9d3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-26 Wolfgang Gellerich <gellerich@de.ibm.com>
+
+ * gfortran.dg/open_errors.f90: Added if statements checking
+ the value of iostat.
+
2007-04-26 Jakub Jelinek <jakub@redhat.com>
PR c++/31598
diff --git a/gcc/testsuite/gfortran.dg/open_errors.f90 b/gcc/testsuite/gfortran.dg/open_errors.f90
index 8e719d19ea1..ff55d3a59da 100644
--- a/gcc/testsuite/gfortran.dg/open_errors.f90
+++ b/gcc/testsuite/gfortran.dg/open_errors.f90
@@ -7,11 +7,13 @@ open(77,file=n,status="new")
close(77, status="keep")
msg=""
open(77,file=n,status="new", iomsg=msg, iostat=i)
+if (i == 0) call abort()
if (msg /= "File 'temptestfile' already exists") call abort()
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 /= "File 'temptestfile' does not exist") call abort()
open(77,file="./", iomsg=msg, iostat=i)
@@ -22,6 +24,7 @@ i = chmod(n, "-w")
if (i == 0) then
close(77, status="keep")
open(77,file=n, iomsg=msg, iostat=i, action="write")
+ if (i == 0) call abort()
if (msg /= "Permission denied trying to open file 'temptestfile'") call abort()
endif
OpenPOWER on IntegriCloud