diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-27 20:51:29 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-27 20:51:29 +0000 |
commit | 3c59a221e175f1480757188db102c22f3ba2f422 (patch) | |
tree | 41337e57bd96f09d66b99a4a60d9e1ab794878a3 /test | |
parent | a7e391d279914f0d9fb909e7ca2fffc0ab2175f9 (diff) | |
download | ruby-3c59a221e175f1480757188db102c22f3ba2f422.tar.gz |
suppress warnings: assigned but unused variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_gc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 3e3e25d437..cf869924c1 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -12,10 +12,10 @@ class TestGc < Test::Unit::TestCase GC.stress = false assert_nothing_raised do + tmp = nil 1.upto(10000) { tmp = [0,1,2,3,4,5,6,7,8,9] } - tmp = nil end l=nil 100000.times { @@ -348,7 +348,7 @@ class TestGc < Test::Unit::TestCase end; opts = {signal: :SEGV} begin - cur, max = Process.getrlimit(:CORE) + _, max = Process.getrlimit(:CORE) opts[:rlimit_core] = [0,max] rescue NotImplementedError end |