diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-19 08:14:21 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-19 08:14:21 +0000 |
commit | b2a40d21217cdffca654c7d4587237266a27c3ad (patch) | |
tree | fc7fd05cb7029886b4ec7c23fcc0fe6d1ece9aa3 /bootstraptest/test_block.rb | |
parent | 15fed41609dd0e239f0da61aea4e6742962b7be4 (diff) | |
download | ruby-b2a40d21217cdffca654c7d4587237266a27c3ad.tar.gz ruby-b2a40d21217cdffca654c7d4587237266a27c3ad.tar.xz ruby-b2a40d21217cdffca654c7d4587237266a27c3ad.zip |
* bootstraptest/test_knownbug.rb, test_block.rb:
move fixed bug.
* bootstraptest/test_m17n.rb: added.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_block.rb')
-rw-r--r-- | bootstraptest/test_block.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb index b4334ee44..97fcdd4be 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]' |