diff options
author | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-29 01:25:36 +0000 |
---|---|---|
committer | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-29 01:25:36 +0000 |
commit | 0f51db6a1ee68ccab6a63e05578b4a737c21d97f (patch) | |
tree | 6cc9f905facad151d8d7a08e8845413cc103798d /test/ruby | |
parent | 7973883c3a2b40601f6f82893b4be8203b0ba363 (diff) | |
download | ruby-0f51db6a1ee68ccab6a63e05578b4a737c21d97f.tar.gz |
* parse.y (symbols_i): like r45492, call rb_gc_resurrect().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_symbol.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index 0cc760ae00..49580b1342 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -232,5 +232,9 @@ class TestSymbol < Test::Unit::TestCase assert_normal_exit('".".intern;GC.start(immediate_sweep:false);eval %[GC.start;%i"."]', '', child_env: '--disable-gems') + assert_normal_exit('tap{".".intern};GC.start(immediate_sweep:false);' + + 'eval %[syms=Symbol.all_symbols;GC.start;syms.each(&:to_sym)]', + '', + child_env: '--disable-gems') end end |