1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Avoid suppressing unrelated warnings

This commit is contained in:
Takashi Kokubun 2021-01-18 20:44:47 -08:00
parent f12320cd57
commit 4886535ab2
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -778,20 +778,17 @@ class TestJIT < Test::Unit::TestCase
end end
def test_inlined_builtin_methods def test_inlined_builtin_methods
verbose_bak, $VERBOSE = $VERBOSE, nil
assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: '', success_count: 1, min_calls: 2) assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: '', success_count: 1, min_calls: 2)
begin; begin;
def test def test
float = 0.0 float = 0.0
float.abs float.abs
-float float.-@
float.zero? float.zero?
end end
test test
test test
end; end;
ensure
$VERBOSE = verbose_bak
end end
def test_inlined_c_method def test_inlined_c_method