summaryrefslogtreecommitdiff
path: root/bootstraptest/test_block.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-19 08:14:21 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-19 08:14:21 +0000
commitdef4a99af2081b428b91e8d00c74dd36caa230ca (patch)
treefc7fd05cb7029886b4ec7c23fcc0fe6d1ece9aa3 /bootstraptest/test_block.rb
parent315faf62ffeeb9dc54bc3b697ff5788d652da665 (diff)
* bootstraptest/test_knownbug.rb, test_block.rb:
move fixed bug. * bootstraptest/test_m17n.rb: added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_block.rb')
-rw-r--r--bootstraptest/test_block.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb
index b4334ee..97fcdd4 100644
--- a/bootstraptest/test_block.rb
+++ b/bootstraptest/test_block.rb
@@ -455,3 +455,20 @@ assert_equal 'ok', %q{
vs1 == vs2 ? :ok : :ng
}, '[ruby-dev:32329]'
+assert_normal_exit %q{
+ e = [1,2,3].each
+ 10000.times {
+ e = [e].each
+ }
+ Thread.new { GC.start }.join
+}, '[ruby-dev:32604]'
+
+
+assert_equal '[nil, []]', %q{
+ def m() yield nil,[] end
+ l = lambda {|*v| v}
+ GC.stress=true
+ r = m(&l)
+ GC.stress=false
+ r.inspect
+}, '[ruby-dev:32567]'