diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-25 05:39:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-25 05:39:32 +0000 |
commit | 6f8e5cc821c2c118ff2997fbcaf3c269ae454a8c (patch) | |
tree | 127324b8495ba28ff7e456f53b893a43ba7df49f | |
parent | 985deb62ebb0b6d5ca6f3b6469b5860d00869d93 (diff) | |
download | ruby-6f8e5cc821c2c118ff2997fbcaf3c269ae454a8c.tar.gz |
* test/ruby/test_method.rb (test_unlinked_method_entry_in_method_object_bug):
move from KNOWNBUGS.rb. [Bug #8100]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | KNOWNBUGS.rb | 11 | ||||
-rw-r--r-- | test/ruby/test_method.rb | 13 |
2 files changed, 13 insertions, 11 deletions
diff --git a/KNOWNBUGS.rb b/KNOWNBUGS.rb index 2e4f058661..b97a08d928 100644 --- a/KNOWNBUGS.rb +++ b/KNOWNBUGS.rb @@ -3,14 +3,3 @@ # 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]' diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index ea81fdb83a..167234bb1a 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -576,4 +576,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 |