summaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-08-25 01:03:58 +0200
committerlouiz’ <louiz@louiz.org>2018-08-25 01:03:58 +0200
commitf880428a5a8ff24d0d3df036c46edee0c8b2d49f (patch)
tree60684270237cbd1512c1ed723cdbf18629c13b6e /cmake/Modules
parenta3e865ad63a1c0d634001d9d2e86c425bc5094e5 (diff)
downloadbiboumi-f880428a5a8ff24d0d3df036c46edee0c8b2d49f.tar.gz
biboumi-f880428a5a8ff24d0d3df036c46edee0c8b2d49f.tar.bz2
biboumi-f880428a5a8ff24d0d3df036c46edee0c8b2d49f.tar.xz
biboumi-f880428a5a8ff24d0d3df036c46edee0c8b2d49f.zip
Fix the --remove pattern in lcov to exclude catch from the coverage
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/CodeCoverage.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/CodeCoverage.cmake b/cmake/Modules/CodeCoverage.cmake
index 77586ab..9fde45e 100644
--- a/cmake/Modules/CodeCoverage.cmake
+++ b/cmake/Modules/CodeCoverage.cmake
@@ -157,7 +157,7 @@ FUNCTION(SETUP_TARGET_FOR_COVERAGE _targetname _testrunner _outputname)
# Remove information about source files that are not part of
# the test (system file, external libraries, etc)
- COMMAND ${LCOV_PATH} --remove ${_outputname}.info 'tests/*' '/usr/*' 'external/*' 'build/*' --output-file ${_outputname}.info -q
+ COMMAND ${LCOV_PATH} --remove ${_outputname}.info '/usr/*' '*/external/*' --output-file ${_outputname}.info -q
# Generate the report
COMMAND ${GENHTML_PATH} -o ${_outputname} ${_outputname}.info