Skip to content

Commit

Permalink
simplecov.rb - fix Process monkey patch for fork when unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg authored and PragTob committed Oct 4, 2020
1 parent c1a7e7d commit dd35066
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/simplecov.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ class << self
def start(profile = nil, &block)
require "coverage"
initial_setup(profile, &block)
require_relative "./simplecov/process" if SimpleCov.enabled_for_subprocesses?
require_relative "./simplecov/process" if SimpleCov.enabled_for_subprocesses? &&
::Process.respond_to?(:fork)

make_parallel_tests_available

@result = nil
Expand Down

0 comments on commit dd35066

Please sign in to comment.