ruby-changes:27873
From: nobu <ko1@a...>
Date: Mon, 25 Mar 2013 14:39:40 +0900 (JST)
Subject: [ruby-changes:27873] nobu:r39925 (trunk): * test/ruby/test_method.rb (test_unlinked_method_entry_in_method_object_bug):
nobu 2013-03-25 14:39:32 +0900 (Mon, 25 Mar 2013) New Revision: 39925 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39925 Log: * test/ruby/test_method.rb (test_unlinked_method_entry_in_method_object_bug): move from KNOWNBUGS.rb. [Bug #8100] Modified files: trunk/KNOWNBUGS.rb trunk/test/ruby/test_method.rb Index: KNOWNBUGS.rb =================================================================== --- KNOWNBUGS.rb (revision 39924) +++ KNOWNBUGS.rb (revision 39925) @@ -3,14 +3,3 @@ https://github.com/ruby/ruby/blob/trunk/KNOWNBUGS.rb#L3 # So all tests will cause failure. # -assert_normal_exit %q{ - require 'timeout' - timeout(2) do - loop do - def x - "hello" * 1000 - end - method(:x).call - end - end -}, '[ruby-core:53640] [Bug #8100]' Index: test/ruby/test_method.rb =================================================================== --- test/ruby/test_method.rb (revision 39924) +++ test/ruby/test_method.rb (revision 39925) @@ -576,4 +576,17 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method.rb#L576 IRB.start }, '[Bug #7825]' end + + def test_unlinked_method_entry_in_method_object_bug + bug8100 = '[ruby-core:53640] [Bug #8100]' + assert_ruby_status [], %q{ + loop do + def x + "hello" * 1000 + end + method(:x).call + end + }, bug8100, timeout: 2 + rescue Timeout::Error + end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/