Skip to content

Commit dd35066

Browse files
MSP-GregPragTob
authored andcommitted
simplecov.rb - fix Process monkey patch for fork when unsupported
1 parent c1a7e7d commit dd35066

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/simplecov.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ class << self
5050
def start(profile = nil, &block)
5151
require "coverage"
5252
initial_setup(profile, &block)
53-
require_relative "./simplecov/process" if SimpleCov.enabled_for_subprocesses?
53+
require_relative "./simplecov/process" if SimpleCov.enabled_for_subprocesses? &&
54+
::Process.respond_to?(:fork)
55+
5456
make_parallel_tests_available
5557

5658
@result = nil

0 commit comments

Comments
 (0)