1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_io.rb (TestIO#test_dup): add open in block.

see [ruby-dev:35957].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2008-09-08 04:49:52 +00:00
parent 3c8a03c3e5
commit be2c236fff
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Mon Sep 8 13:47:39 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* test/ruby/test_io.rb (TestIO#test_dup): add open in block.
see [ruby-dev:35957].
Mon Sep 8 07:09:42 2008 Tadayoshi Funaba <tadf@dotrb.org>
* complex.c: some adjustments.

View file

@ -636,6 +636,10 @@ class TestIO < Test::Unit::TestCase
assert_equal("", f2.read)
end
proc do
open(__FILE__) # see Bug #493 [ruby-dev:35957]
end.call
pipe2 do |r, w|
assert_raise(Errno::EMFILE, Errno::ENFILE, Errno::ENOMEM) do
r2, w2 = r.dup, w.dup