* test/ruby/test_io.rb (TestIO#test_dup): exception should be
raised from IO#dup. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
542f76c6cd
commit
326bf1cac3
@ -1,3 +1,8 @@
|
||||
Tue Sep 16 09:20:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_io.rb (TestIO#test_dup): exception should be
|
||||
raised from IO#dup.
|
||||
|
||||
Tue Sep 16 08:35:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_io.rb (TestIO#test_dup): this test might fail if
|
||||
|
@ -632,6 +632,9 @@ class TestIO < Test::Unit::TestCase
|
||||
assert_raise(Errno::EMFILE, Errno::ENFILE, Errno::ENOMEM) do
|
||||
loop {a << IO.pipe}
|
||||
end
|
||||
assert_raise(Errno::EMFILE, Errno::ENFILE, Errno::ENOMEM) do
|
||||
loop {a[-1][0].dup; a[-1][1].dup}
|
||||
end
|
||||
a.each do |r, w|
|
||||
r.close unless !r || r.closed?
|
||||
w.close unless !w || w.closed?
|
||||
|
Loading…
x
Reference in New Issue
Block a user