rubyx/test/elf/test_zero.rb

20 lines
463 B
Ruby
Raw Normal View History

2016-12-30 12:15:08 +01:00
require_relative "../helper"
class TestZeroCode < MiniTest::Test
def test_string_put
machine = Register.machine.boot
space = Parfait.object_space
space.each_type do | type |
type.method_names.each do |method|
type.remove_method(method)
end
end
assert_equal 0 , space.collect_methods.length
machine.collect_space
2016-12-30 12:15:08 +01:00
machine.translate_arm
# writer = Elf::ObjectWriter.new
# writer.save "test/zero.o"
end
end