diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-01 22:18:25 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-01 22:18:25 +0000 |
commit | 42166c6266a50f59613c9404e6f790f6d1991cb7 (patch) | |
tree | 4ad4212f3cf277afee5ef19843e32797bc607a03 /test | |
parent | 120976b9f973f667c6eeb246b2d311949ecdf1f3 (diff) | |
download | ruby-42166c6266a50f59613c9404e6f790f6d1991cb7.tar.gz |
test/ruby/test_optimization.rb: quiet warnings
This quiets an old "assigned but unused variable" warning left
over after r56653 as well as two new "ambiguous first argment"
warnings introduced in r58233.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_optimization.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_optimization.rb b/test/ruby/test_optimization.rb index 2de1db340f..3303751745 100644 --- a/test/ruby/test_optimization.rb +++ b/test/ruby/test_optimization.rb @@ -338,7 +338,7 @@ STDOUT.flush foo EOF EOS - status, err = EnvUtil.invoke_ruby([], "", true, true, {}) { + status, _err = EnvUtil.invoke_ruby([], "", true, true, {}) { |in_p, out_p, err_p, pid| in_p.write(script) in_p.close @@ -507,7 +507,7 @@ EOS insn = iseq.disasm assert_match %r{putobject\s+#{Regexp.quote('"1.8.0"..."1.8.8"')}}, insn assert_match %r{putobject\s+#{Regexp.quote('"2.0.0".."2.3.2"')}}, insn - assert_no_match /putstring/, insn - assert_no_match /newrange/, insn + assert_no_match(/putstring/, insn) + assert_no_match(/newrange/, insn) end end |