Ceedling icon indicating copy to clipboard operation
Ceedling copied to clipboard

Ceedling should normalize paths before checking for files in ignored list in gcov.rb

Open jonathon-generac opened this issue 2 years ago • 0 comments

In gcov.rb, inside of loop COLLECTION_ALL_SOURCE.each do |source|, Ceedling checks to see if source is present in ignore_uncovered_list. However, the paths in either list are not normalized, so if one list prefixes all paths with ./ and another list doesn't, then matches will not be identified. Using the latest version of Ceedling, I did have luck getting gcov_uncovered_ignore_list to work if everything in the paths section used the same format as everything in gcov_uncovered_ignore_list, but even this did not appear to work in an older version of Ceedling. As a general practice, it would be a good idea to normalize all paths when each list of files is created.

jonathon-generac avatar Apr 21 '23 15:04 jonathon-generac