mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use Enumerator for reproduce [ruby-dev:32604].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8523343780
commit
e34b2c31df
1 changed files with 2 additions and 3 deletions
|
@ -170,10 +170,9 @@ assert_equal '[nil, []]', %q{
|
|||
}, '[ruby-dev:32567]'
|
||||
|
||||
assert_normal_exit %q{
|
||||
require 'stringio'
|
||||
s = ""
|
||||
e = [1,2,3].each
|
||||
10000.times {
|
||||
s = "a".instance_eval { @a = StringIO.new(s); self }
|
||||
e = [e].each
|
||||
}
|
||||
Thread.new { GC.start }.join
|
||||
}, '[ruby-dev:32604]'
|
||||
|
|
Loading…
Reference in a new issue