ruby-changes:39922
From: nobu <ko1@a...>
Date: Fri, 2 Oct 2015 11:59:23 +0900 (JST)
Subject: [ruby-changes:39922] nobu:r52003 (trunk): test_method.rb: finite loop
nobu 2015-10-02 11:59:17 +0900 (Fri, 02 Oct 2015) New Revision: 52003 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52003 Log: test_method.rb: finite loop * test/ruby/test_method.rb (test_unlinked_method_entry_in_method_object_bug): do not expect timeout as normal result. [Bug #8100] Modified files: trunk/test/ruby/test_method.rb Index: test/ruby/test_method.rb =================================================================== --- test/ruby/test_method.rb (revision 52002) +++ test/ruby/test_method.rb (revision 52003) @@ -772,19 +772,14 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method.rb#L772 def test_unlinked_method_entry_in_method_object_bug bug8100 = '[ruby-core:53640] [Bug #8100]' - begin - assert_normal_exit %q{ - loop do + assert_normal_exit %q{ + 1_000_000.times do def x "hello" * 1000 end method(:x).call end - }, bug8100, timeout: 2 - rescue Timeout::Error => e - else - end - assert_raise(Timeout::Error, bug8100) {raise e if e} + }, bug8100 end def test_singleton_method -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/