From feecc10bfcf6fb95f60f62dbfcc9b23fc15813f2 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sat, 6 Apr 2019 02:42:30 +0000 Subject: Suppress unnecessary warnings in test_jit git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_jit.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/ruby/test_jit.rb') diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 9380ee98e1..5b5c21d76d 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -184,9 +184,9 @@ class TestJIT < Test::Unit::TestCase end def test_compile_insn_definemethod - assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: 'hellohello', success_count: 2, insns: %i[definemethod]) + assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: 'hello', success_count: 2, insns: %i[definemethod]) begin; - print 2.times.map { + print 1.times.map { def method_definition 'hello' end @@ -698,9 +698,11 @@ class TestJIT < Test::Unit::TestCase end end + verbose, $VERBOSE = $VERBOSE, false # suppress "instance variable @b not initialized" print(Foo.new.bar) print(Foo.new.bar) print(Foo.new.bar) + $VERBOSE = verbose end; end @@ -729,10 +731,8 @@ class TestJIT < Test::Unit::TestCase p(a.undefined) # redefinition - class A - def test - 3 - end + def a.test + 3 end print(2 * a.test) -- cgit v1.2.3