public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Fortran, committed] XFAIL read_dir.f90 on FreeBSD
@ 2015-09-01 18:16 Steve Kargl
  2015-09-01 18:18 ` Steve Kargl
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Kargl @ 2015-09-01 18:16 UTC (permalink / raw)
  To: fortran, gcc-patches

I've committed the patch that follows my .sig.

2015-09-01  Steven G. Kargl  <kargl@gcc.gnu.org>

	* gfortran.dg/read_dir.f90: XFAIL this testcase on FreeBSD.
	Clean-up a created directory if testcase fails.

I suspect that this testcase will fail on all *BSD OS's.

-- 
Steve

Index: gfortran.dg/read_dir.f90
===================================================================
--- gfortran.dg/read_dir.f90	(revision 227380)
+++ gfortran.dg/read_dir.f90	(working copy)
@@ -1,4 +1,4 @@
-! { dg-do run }
+! { dg-do run { xfail *-*-freebsd* } }
 ! PR67367
 program bug
    implicit none
@@ -9,6 +9,11 @@ program bug
    open(unit=10, file='junko.dir',iostat=ios,action='read',access='stream')
    if (ios.ne.0) call abort
    read(10, iostat=ios) c
-   if (ios.ne.21) call abort
+   if (ios.ne.21) then 
+      close(10)
+      call system('rmdir junko.dir')
+      call abort
+   end if
+   close(10)
    call system('rmdir junko.dir')
 end program bug

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-09-03 21:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-01 18:16 [Fortran, committed] XFAIL read_dir.f90 on FreeBSD Steve Kargl
2015-09-01 18:18 ` Steve Kargl
2015-09-01 22:28   ` Jerry DeLisle
2015-09-02  8:30     ` Janne Blomqvist
2015-09-02 15:03       ` Steve Kargl
2015-09-03 21:58         ` Janne Blomqvist

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).