[前][次][番号順一覧][スレッド一覧]

ruby-changes:64953

From: Takashi <ko1@a...>
Date: Tue, 19 Jan 2021 13:46:01 +0900 (JST)
Subject: [ruby-changes:64953] 4886535ab2 (master): Avoid suppressing unrelated warnings

https://git.ruby-lang.org/ruby.git/commit/?id=4886535ab2

From 4886535ab2671fb6e7edb438c95c2c9b03ffba29 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Mon, 18 Jan 2021 20:44:47 -0800
Subject: Avoid suppressing unrelated warnings


diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index bfdfd64..d7d4ee1 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -778,20 +778,17 @@ 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
         float = 0.0
         float.abs
-        -float
+        float.-@
         float.zero?
       end
       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/

[前][次][番号順一覧][スレッド一覧]