Skip to content
Snippets Groups Projects

CTestCoverageCollectGCOV: Improve implementation

Merged Cristian Morales Vega requested to merge RedDwarf/cmake:better_gcov_coverage into master
  1. May 03, 2019
    • Cristian Morales Vega's avatar
      CTestCoverageCollectGCOV: run gcov with -x · 41d262bd
      Cristian Morales Vega authored
      Using "-x" we avoid overwriting .gcov files from source files in
      different paths which happen to have the same name. It's similar to
      "-p", but it produces shorter file names, reducing the risk of reaching
      the file system limit.
      41d262bd
    • Cristian Morales Vega's avatar
      CTestCoverageCollectGCOV: run gcov only once · 911b9786
      Cristian Morales Vega authored
      Running gcov once per .gcda file is not only inefficient, it also
      generates wrong data since .gcov files can get overwritten and in
      general gcov works with less information.
      
      fakegcov.cmake needs to be able to handle multiple .gcda files for the
      test to be meaningful.
      911b9786
Loading