diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-08 04:49:52 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-08 04:49:52 +0000 |
commit | c979cc3e365d2d9a28acd5bbf20c29ca700f594e (patch) | |
tree | 192585f2e98ab4d0419a28f63713f0fed834c7dd /test | |
parent | faf4e16f09ef0f31a5367d2b599ab136104fa360 (diff) | |
download | ruby-c979cc3e365d2d9a28acd5bbf20c29ca700f594e.tar.gz ruby-c979cc3e365d2d9a28acd5bbf20c29ca700f594e.tar.xz ruby-c979cc3e365d2d9a28acd5bbf20c29ca700f594e.zip |
* test/ruby/test_io.rb (TestIO#test_dup): add open in block.
see [ruby-dev:35957].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 6b2dc3102..35f575aa1 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 |