Skip to content

Commit

Permalink
* test/ruby/test_method.rb (test_unlinked_method_entry_in_method_obje…
Browse files Browse the repository at this point in the history
…ct_bug):

  move from KNOWNBUGS.rb.  [Bug ruby#8100]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Mar 25, 2013
1 parent cf77a67 commit 0eed15f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
11 changes: 0 additions & 11 deletions KNOWNBUGS.rb
Expand Up @@ -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]'
13 changes: 13 additions & 0 deletions test/ruby/test_method.rb
Expand Up @@ -576,4 +576,17 @@ def test_gced_bmethod
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

0 comments on commit 0eed15f

Please sign in to comment.