1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Stop testing inexistent instructions

This commit is contained in:
Takashi Kokubun 2019-09-03 21:38:32 +09:00
parent beaabd2308
commit ecc37ee67b
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -20,15 +20,11 @@ class TestJIT < Test::Unit::TestCase
# not supported yet
:defineclass,
:opt_call_c_function,
# joke
:bitblt,
:answer,
# TODO: write tests for them
:reput,
:tracecoverage,
]
].each do |insn|
if !RubyVM::INSTRUCTION_NAMES.include?(insn.to_s)
warn "instruction #{insn.inspect} is not defined but included in TestJIT::TEST_PENDING_INSNS"
end
end
def self.untested_insns
@untested_insns ||= (RubyVM::INSTRUCTION_NAMES.map(&:to_sym) - TEST_PENDING_INSNS)