summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-11-12 16:40:49 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-11-12 16:40:49 +0900
commit61938e2db59a032a46fc3de2ebead2e5e9d630a9 (patch)
tree5de0f2885cbf17c4a50ac688430debfdd0ea9a14 /test/ruby
parent3aa62b455caf4926fd203878eca71b5281f10edf (diff)
test/ruby/test_jit.rb: suppress a false-positive warning
It reports "opt_regexpmatch2 insn is not included", but actually it is included. This is due to a known bug of ISeq#to_a on which this check depends. https://bugs.ruby-lang.org/issues/18269
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_jit.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index 669dcf56e6..f7ea67c023 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -1231,7 +1231,9 @@ class TestJIT < Test::Unit::TestCase
end
def mark_tested_insn(insn, used_insns:, uplevel: 1)
- unless used_insns.include?(insn)
+ # Currently, this check emits a false-positive warning against opt_regexpmatch2,
+ # so the insn is excluded explicitly. See https://bugs.ruby-lang.org/issues/18269
+ if !used_insns.include?(insn) && insn != :opt_regexpmatch2
$stderr.puts
warn "'#{insn}' insn is not included in the script. Actual insns are: #{used_insns.join(' ')}\n", uplevel: uplevel
end