Stop testing inexistent instructions
This commit is contained in:
parent
beaabd2308
commit
ecc37ee67b
@ -20,15 +20,11 @@ class TestJIT < Test::Unit::TestCase
|
|||||||
# not supported yet
|
# not supported yet
|
||||||
:defineclass,
|
:defineclass,
|
||||||
:opt_call_c_function,
|
:opt_call_c_function,
|
||||||
|
].each do |insn|
|
||||||
# joke
|
if !RubyVM::INSTRUCTION_NAMES.include?(insn.to_s)
|
||||||
:bitblt,
|
warn "instruction #{insn.inspect} is not defined but included in TestJIT::TEST_PENDING_INSNS"
|
||||||
:answer,
|
end
|
||||||
|
end
|
||||||
# TODO: write tests for them
|
|
||||||
:reput,
|
|
||||||
:tracecoverage,
|
|
||||||
]
|
|
||||||
|
|
||||||
def self.untested_insns
|
def self.untested_insns
|
||||||
@untested_insns ||= (RubyVM::INSTRUCTION_NAMES.map(&:to_sym) - TEST_PENDING_INSNS)
|
@untested_insns ||= (RubyVM::INSTRUCTION_NAMES.map(&:to_sym) - TEST_PENDING_INSNS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user