hoist parfait boot out of the machine boot

This commit is contained in:
Torsten Ruger
2018-06-30 00:39:23 +03:00
parent 8d7a2fe4d6
commit 46d8f5002f
35 changed files with 62 additions and 33 deletions

View File

@ -3,6 +3,7 @@ require_relative "helper"
module Risc
class TestCodeListenerFull < MiniTest::Test
def setup
Parfait.boot!
@machine = Risc.machine.boot
@binary = Parfait::BinaryCode.new(1)
@method = Parfait.object_space.types.values.first.methods

View File

@ -3,6 +3,7 @@ require_relative "helper"
module Risc
class TestPositionTranslated < MiniTest::Test
def setup
Parfait.boot!
machine = Risc.machine.boot
machine.translate(:interpreter)
@binary = Parfait::BinaryCode.new(1)

View File

@ -3,6 +3,7 @@ require_relative "helper"
module Risc
class TestMachinePositions < MiniTest::Test
def setup_for(platform)
Parfait.boot!
@machine = Risc.machine.boot
@machine.translate(platform)
@machine.position_all