From dd350665bfd4ef9e36b83907a2fda32ed2787df5 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Sat, 3 Oct 2020 13:56:19 -0500 Subject: [PATCH] simplecov.rb - fix Process monkey patch for fork when unsupported --- lib/simplecov.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/simplecov.rb b/lib/simplecov.rb index b6ab4b6d..4d4ccfff 100644 --- a/lib/simplecov.rb +++ b/lib/simplecov.rb @@ -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