class Spork::RunStrategy::Forking < Spork::RunStrategy
  def self.available?
    Kernel.respond_to?(:fork)
  end

  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
      test_framework.run_tests(argv, stderr, stdout)
    end
    @child.result
  end

  def abort
    @child && @child.abort
  end

  def preload
    require test_framework.entry_point
    test_framework.preload
  end

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

end
class Spork::RunStrategy::Forking < Spork::RunStrategy
  def self.available?
    Kernel.respond_to?(:fork)
  end

  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
      test_framework.run_tests(argv, stderr, stdout)
    end
    @child.result
  end

  def abort
    @child && @child.abort
  end

  def preload
    test_framework.preload
  end

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

end
Revert "fixes regression where entry point was not being loaded"
Revert "fixes regression where entry point was not being loaded"

This reverts commit 28f6da0e4e89d35411b19d5a5977a9d9f305f5f9.
