class Spork::RunStrategy::Forking

def self.available?

def self.available?
  Kernel.respond_to?(:fork)
end

def abort

def abort
  @child && @child.abort
end

def assert_ready!

def assert_ready!
  raise RuntimeError, "This process hasn't loaded the environment yet by loading the prefork block" unless Spork.using_spork?
end

def preload

def preload
  test_framework.preload
end

def run(argv, stderr, stdout)

def run(argv, stderr, stdout)
  abort if running?
  @child = ::Spork::Forker.new do
    $stdout, $stderr = stdout, stderr
    load test_framework.helper_file
    Spork.exec_each_run
    result = test_framework.run_tests(argv, stderr, stdout)
    Spork.exec_after_each_run
    result
  end
  @child.result
end

def running?

def running?
  @child && @child.running?
end