--- gcc/testsuite/gfortran.dg/open_errors.f90.orig +++ gcc/testsuite/gfortran.dg/open_errors.f90 @@ -22,7 +22,7 @@ if (msg /= "File 'temptestfile' does not exist") call abort() open(77,file="./", iomsg=msg, iostat=i) -if (msg /= "'./' is a directory" .and. msg /= "Invalid argument") call abort() +if (msg /= "'./' is a directory" .and. msg /= "Invalid argument" .and. msg /= "File './' already exists") call abort() open(77,file=n,status="new") i = chmod(n, "-w")