summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2022-12-17 08:51:20 +0900
committerYusuke Endoh <mame@ruby-lang.org>2022-12-17 08:51:20 +0900
commitfe3dedb21a945063724502e96c21ed3682c61c18 (patch)
treeb0c2b4cd51b8fbf9bd7e96b381f05335d53c304c /test
parent2013dd465811b6d01129f25af4fbe84002a2273f (diff)
downloadruby-fe3dedb21a945063724502e96c21ed3682c61c18.tar.gz
Prevent a "method redefined" warning
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_mjit.rb3
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