re PR fortran/68746 (FAIL: gfortran.dg/read_dir.f90 -O0 execution test)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 12 Feb 2018 20:48:32 +0000 (20:48 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 12 Feb 2018 20:48:32 +0000 (20:48 +0000)
2018-02-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/68746
* gfortran.dg/read_dir.f90: Remove xfails. Also allow iostat
of zero for read.

From-SVN: r257604

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/read_dir.f90

index 8f22a65c7bb7b098b18a58d83fb266f69216fc84..2ce200b5ffd712c5b4b4bae58ec66a4dec91878e 100644 (file)
@@ -1,3 +1,9 @@
+2018-02-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
+
+       PR fortran/68746
+       * gfortran.dg/read_dir.f90: Remove xfails. Also allow iostat
+       of zero for read.
+
 2018-02-12  Jeff Law  <law@redhat.com>
 
        * gcc.c-torture/compile/reg-args-size.c: New test.
index 9df01426e9b0717f4de51e12f769944673c88112..474f1d0e10ede9a016d4c357f1a9945f30288e5e 100644 (file)
@@ -1,4 +1,3 @@
-! { dg-do run { xfail *-*-freebsd* *-*-dragonfly* hppa*-*-hpux* powerpc-ibm-aix* } }
 ! PR67367
 program bug
    implicit none
@@ -12,7 +11,7 @@ program bug
       call abort
    end if
    read(10, iostat=ios) c
-   if (ios.ne.21) then 
+   if (ios.ne.21.and.ios.ne.0) then 
       close(10, status='delete')
       call abort
    end if