summaryrefslogtreecommitdiff
path: root/test/ruby/test_method.rb
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-11 18:47:16 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-11 18:47:16 +0000
commit44212576f5b2bfe92f1df31f9b75cb23d6086c64 (patch)
treeed89864fae22db8e29575ba1894a1b6b797086db /test/ruby/test_method.rb
parent35cc23f49367c83f35efa5c9f94ee17706007915 (diff)
merge revision(s) 39905,39919,39925,39945: [Backport #8163]
* test/ruby/envutil.rb (assert_ruby_status): include stderr output. unlinked method entry. [Bug #8100] [ruby-core:53439] * proc.c (bm_free): need to clean up the mark flag of a free and git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_method.rb')
-rw-r--r--test/ruby/test_method.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index 23b348a94f..00f5658431 100644
--- a/test/ruby/test_method.rb
+++ b/test/ruby/test_method.rb
@@ -536,4 +536,17 @@ class TestMethod < Test::Unit::TestCase
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