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:
parent
f12320cd57
commit
4886535ab2
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue