We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43618c8 commit 7d6ec03Copy full SHA for 7d6ec03
lib/cmock_config.rb
@@ -81,7 +81,11 @@ def initialize(options = nil)
81
require 'pathname'
82
includes1 = options[:includes_c_post_header] || []
83
includes2 = options[:unity_helper_path].map do |path|
84
- Pathname(File.expand_path(path)).relative_path_from(Pathname(File.expand_path(options[:mock_path]))).to_s
+ begin
85
+ Pathname(File.expand_path(path)).relative_path_from(Pathname(File.expand_path(options[:mock_path]))).to_s
86
+ rescue
87
+ path
88
+ end
89
end
90
options[:includes_c_post_header] = (includes1 + includes2).uniq
91
0 commit comments