misc little test fixes

This commit is contained in:
Torsten Ruger
2018-07-03 10:12:40 +03:00
parent bb1d1495db
commit cab6bc389f
7 changed files with 30 additions and 34 deletions

View File

@ -19,8 +19,8 @@ module Elf
in_space("def main(arg);#{input};end")
end
def check(input, file)
RubyX::RubyXCompiler.new(input).ruby_to_binary( :arm )
writer = Elf::ObjectWriter.new(Risc.machine)
linker = RubyX::RubyXCompiler.new(input).ruby_to_binary( :arm )
writer = Elf::ObjectWriter.new(linker)
writer.save "test/#{file}.o"
end