ruby-changes:64952
From: Yusuke <ko1@a...>
Date: Tue, 19 Jan 2021 13:41:43 +0900 (JST)
Subject: [ruby-changes:64952] f12320cd57 (master): test/ruby/test_jit.rb: Avoid a warning
https://git.ruby-lang.org/ruby.git/commit/?id=f12320cd57 From f12320cd57982800d3a10a32bd357c9da239a53b Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Tue, 19 Jan 2021 13:40:39 +0900 Subject: test/ruby/test_jit.rb: Avoid a warning http://rubyci.s3.amazonaws.com/ubuntu2004/ruby-master/log/20210119T033003Z.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 ``` diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 3ecc78f..bfdfd64 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -778,6 +778,7 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L778 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 @@ -789,6 +790,8 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L790 test test end; + ensure + $VERBOSE = verbose_bak end def test_inlined_c_method -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/