ruby-changes:7855
From: matz <ko1@a...>
Date: Tue, 16 Sep 2008 09:21:50 +0900 (JST)
Subject: [ruby-changes:7855] Ruby:r19376 (trunk): * test/ruby/test_io.rb (TestIO#test_dup): exception should be
matz 2008-09-16 09:21:32 +0900 (Tue, 16 Sep 2008) New Revision: 19376 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19376 Log: * test/ruby/test_io.rb (TestIO#test_dup): exception should be raised from IO#dup. Modified files: trunk/ChangeLog trunk/test/ruby/test_io.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 19375) +++ ChangeLog (revision 19376) @@ -1,3 +1,8 @@ +Tue Sep 16 09:20:42 2008 Yukihiro Matsumoto <matz@r...> + + * 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@r...> * test/ruby/test_io.rb (TestIO#test_dup): this test might fail if Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 19375) +++ test/ruby/test_io.rb (revision 19376) @@ -632,6 +632,9 @@ 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? -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/