diff options
author | Yusuke Endoh <[email protected]> | 2022-12-17 08:51:20 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2022-12-17 08:51:20 +0900 |
commit | fe3dedb21a945063724502e96c21ed3682c61c18 (patch) | |
tree | b0c2b4cd51b8fbf9bd7e96b381f05335d53c304c /test/ruby/test_mjit.rb | |
parent | 2013dd465811b6d01129f25af4fbe84002a2273f (diff) |
Prevent a "method redefined" warning
Diffstat (limited to 'test/ruby/test_mjit.rb')
-rw-r--r-- | test/ruby/test_mjit.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_mjit.rb b/test/ruby/test_mjit.rb index 3120d7e780..bf4046b220 100644 --- a/test/ruby/test_mjit.rb +++ b/test/ruby/test_mjit.rb @@ -214,6 +214,7 @@ class TestMJIT < Test::Unit::TestCase end def test_compile_insn_definemethod_definesmethod + verbose_bak, $VERBOSE = $VERBOSE, nil assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: 'helloworldhelloworld', success_count: 3, insns: %i[definemethod definesmethod]) begin; print 2.times.map { @@ -228,6 +229,8 @@ class TestMJIT < Test::Unit::TestCase method_definition + smethod_definition }.join end; + ensure + $VERBOSE = verbose_bak end def test_compile_insn_putspecialobject |