Skip to content

Commit 6f8e5cc

Browse files
committed
* test/ruby/test_method.rb (test_unlinked_method_entry_in_method_object_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
1 parent 985deb6 commit 6f8e5cc

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

KNOWNBUGS.rb

-11
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,3 @@
33
# So all tests will cause failure.
44
#
55

6-
assert_normal_exit %q{
7-
require 'timeout'
8-
timeout(2) do
9-
loop do
10-
def x
11-
"hello" * 1000
12-
end
13-
method(:x).call
14-
end
15-
end
16-
}, '[ruby-core:53640] [Bug #8100]'

test/ruby/test_method.rb

+13
Original file line numberDiff line numberDiff line change
@@ -576,4 +576,17 @@ def test_gced_bmethod
576576
IRB.start
577577
}, '[Bug #7825]'
578578
end
579+
580+
def test_unlinked_method_entry_in_method_object_bug
581+
bug8100 = '[ruby-core:53640] [Bug #8100]'
582+
assert_ruby_status [], %q{
583+
loop do
584+
def x
585+
"hello" * 1000
586+
end
587+
method(:x).call
588+
end
589+
}, bug8100, timeout: 2
590+
rescue Timeout::Error
591+
end
579592
end

0 commit comments

Comments
 (0)