diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-01 15:18:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-01 15:18:42 +0000 |
commit | 63c7d9111c29e96c51768a60253ca1132165fd51 (patch) | |
tree | ebe3ff9e4f21db9d680449d3b084942cac60cb14 /test/ruby | |
parent | c90550c251f0c598458d52dd2cbd5445e8d26c65 (diff) | |
download | ruby-63c7d9111c29e96c51768a60253ca1132165fd51.tar.gz |
proc.c: fix symbol proc mark
* proc.c (proc_mark): block.ep of Proc from Symbol is now NULL.
[ruby-core:70961] [Bug #11560]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_symbol.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index b62e7538c8..bf2c4adbc9 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -122,6 +122,11 @@ class TestSymbol < Test::Unit::TestCase GC.stress = true true.tap(&:itself) end; + + assert_ruby_status([], <<-"end;", timeout: 0.1) + GC.stress = true + 100.times {Proc.new(&:itself)} + end; end def test_call |