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
|
||||
|
||||
def test_inlined_builtin_methods
|
||||
verbose_bak, $VERBOSE = $VERBOSE, nil
|
||||
assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: '', success_count: 1, min_calls: 2)
|
||||
begin;
|
||||
def test
|
||||
float = 0.0
|
||||
float.abs
|
||||
-float
|
||||
float.-@
|
||||
float.zero?
|
||||
end
|
||||
test
|
||||
test
|
||||
end;
|
||||
ensure
|
||||
$VERBOSE = verbose_bak
|
||||
end
|
||||
|
||||
def test_inlined_c_method
|
||||
|
|
Loading…
Add table
Reference in a new issue