mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_io.rb (test_flush_in_finalizer1): don't use IO.for_fd
to close IO objects. it create IO object with already closed fd, and cause occasional Errno::EBADF in following tests. [ruby-core:45020] [Bug #6228] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
806018e8f4
commit
526a853d6d
2 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,11 @@
|
||||||
Sun May 13 23:32:16 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
Sun May 13 23:38:31 2012 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/ruby/test_io.rb (test_flush_in_finalizer1): don't use IO.for_fd
|
||||||
|
to close IO objects. it create IO object with already closed fd, and
|
||||||
|
cause occasional Errno::EBADF in following tests. [ruby-core:45020]
|
||||||
|
[Bug #6228]
|
||||||
|
|
||||||
|
Sun May 13 23:32:16 2012 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
||||||
|
|
||||||
* test/ruby/test_io.rb (TestIO): revert r35631. it broke the intent of
|
* test/ruby/test_io.rb (TestIO): revert r35631. it broke the intent of
|
||||||
test_flush_in_finalizer1. [ruby-core:43951] [Bug ##6228]
|
test_flush_in_finalizer1. [ruby-core:43951] [Bug ##6228]
|
||||||
|
|
|
@ -1891,7 +1891,7 @@ End
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
fds.each {|fd| IO.for_fd(fd).close rescue next}
|
GC.start
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_flush_in_finalizer2
|
def test_flush_in_finalizer2
|
||||||
|
|
Loading…
Reference in a new issue