Exclude llvm/clang lib headers from test coverage

Excludes the /usr/lib/llvm-*/include/ directory from coverage.
This directory is used on Ubuntu for the libclang-dev packages
pull/2796/head
snsmac 7 years ago committed by Jussi Pakkanen
parent 0bbc9df74a
commit 2b12d3b20f
  1. 1
      mesonbuild/scripts/coverage.py

@ -59,6 +59,7 @@ def coverage(source_root, build_root, log_dir):
remove_dir_from_trace(lcov_exe, covinfo, '/usr/include/*')
remove_dir_from_trace(lcov_exe, covinfo, '/usr/local/include/*')
remove_dir_from_trace(lcov_exe, covinfo, '/usr/src/*')
remove_dir_from_trace(lcov_exe, covinfo, '/usr/lib/llvm-*/include/*')
subprocess.check_call([genhtml_exe,
'--prefix', build_root,
'--output-directory', htmloutdir,

Loading…
Cancel
Save