diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-09-03 21:38:32 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-09-03 21:38:32 +0900 |
commit | ecc37ee67b90426198bd768d0bf036663e301d06 (patch) | |
tree | 26a10a737f5a9ffe5f1fbacc3c4cb991111814e2 /test/ruby | |
parent | beaabd23087a54364bc8fc8aa7a45dd9f425e19b (diff) | |
download | ruby-ecc37ee67b90426198bd768d0bf036663e301d06.tar.gz |
Stop testing inexistent instructions
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_jit.rb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 1c1a07c944..dbd48df28d 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -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) |