mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/ruby/test_jit.rb: Avoid a warning
20210119
T033003Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/build/20210119T033003Z/ruby/test/ruby/test_jit.rb:781:
warning: -e:5: warning: possibly useless use of -@ in void context
```
This commit is contained in:
parent
ff8c92359a
commit
f12320cd57
1 changed files with 3 additions and 0 deletions
|
@ -778,6 +778,7 @@ 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
|
||||||
|
@ -789,6 +790,8 @@ class TestJIT < Test::Unit::TestCase
|
||||||
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
Add a link
Reference in a new issue