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

ruby-changes:58700

From: Takashi <ko1@a...>
Date: Mon, 11 Nov 2019 07:12:31 +0900 (JST)
Subject: [ruby-changes:58700] a733893939 (master): Fix uplevel of test_jit

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

From a73389393906939ed9208562e6ec5eb3d21775e3 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Sun, 10 Nov 2019 14:12:13 -0800
Subject: Fix uplevel of test_jit


diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index 75d4b28..803a8e4 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -1020,7 +1020,7 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L1020
     # Make sure that the script has insns expected to be tested
     used_insns = method_insns(script)
     insns.each do |insn|
-      mark_tested_insn(insn, used_insns: used_insns)
+      mark_tested_insn(insn, used_insns: used_insns, uplevel: uplevel + 3)
     end
 
     assert_equal(
@@ -1041,10 +1041,10 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L1041
     end
   end
 
-  def mark_tested_insn(insn, used_insns:)
+  def mark_tested_insn(insn, used_insns:, uplevel: 1)
     unless used_insns.include?(insn)
       $stderr.puts
-      warn "'#{insn}' insn is not included in the script. Actual insns are: #{used_insns.join(' ')}\n", uplevel: uplevel+2
+      warn "'#{insn}' insn is not included in the script. Actual insns are: #{used_insns.join(' ')}\n", uplevel: uplevel
     end
     TestJIT.untested_insns.delete(insn)
   end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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