From be2c236ffff51cae13acf27d5e14dffe757b2625 Mon Sep 17 00:00:00 2001 From: kazu Date: Mon, 8 Sep 2008 04:49:52 +0000 Subject: * 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 --- test/ruby/test_io.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 6b2dc3102d..35f575aa13 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -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 -- cgit v1.2.3