diff options
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r-- | test/ruby/test_gc.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index adcf85e79e..782d8fde3d 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -78,6 +78,20 @@ class TestGc < Test::Unit::TestCase EOS end + def test_singleton_method_added + assert_in_out_err(%w[--disable-gems], <<-EOS, [], [], "[ruby-dev:44436]") + class BasicObject + def singleton_method_added(mid) + raise + end + end + b = proc {} + class << b; end + b.clone rescue nil + GC.start + EOS + end + def test_gc_parameter env = { "RUBY_GC_MALLOC_LIMIT" => "60000000", |