mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
3aa62b455c
commit
61938e2db5
1 changed files with 3 additions and 1 deletions
|
@ -1231,7 +1231,9 @@ class TestJIT < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def mark_tested_insn(insn, used_insns:, uplevel: 1)
|
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
|
$stderr.puts
|
||||||
warn "'#{insn}' insn is not included in the script. Actual insns are: #{used_insns.join(' ')}\n", uplevel: uplevel
|
warn "'#{insn}' insn is not included in the script. Actual insns are: #{used_insns.join(' ')}\n", uplevel: uplevel
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue