mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress unnecessary warnings in test_jit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4d1163b182
commit
feecc10bfc
1 changed files with 6 additions and 6 deletions
|
@ -184,9 +184,9 @@ class TestJIT < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_compile_insn_definemethod
|
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;
|
begin;
|
||||||
print 2.times.map {
|
print 1.times.map {
|
||||||
def method_definition
|
def method_definition
|
||||||
'hello'
|
'hello'
|
||||||
end
|
end
|
||||||
|
@ -698,9 +698,11 @@ class TestJIT < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
verbose, $VERBOSE = $VERBOSE, false # suppress "instance variable @b not initialized"
|
||||||
print(Foo.new.bar)
|
print(Foo.new.bar)
|
||||||
print(Foo.new.bar)
|
print(Foo.new.bar)
|
||||||
print(Foo.new.bar)
|
print(Foo.new.bar)
|
||||||
|
$VERBOSE = verbose
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -729,10 +731,8 @@ class TestJIT < Test::Unit::TestCase
|
||||||
p(a.undefined)
|
p(a.undefined)
|
||||||
|
|
||||||
# redefinition
|
# redefinition
|
||||||
class A
|
def a.test
|
||||||
def test
|
3
|
||||||
3
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
print(2 * a.test)
|
print(2 * a.test)
|
||||||
|
|
Loading…
Add table
Reference in a new issue