mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
2665a34b3f
Since we run tests in parallel we may end up rewriting the coverage info while running files acting on the same source files. The compiler can be smart though, so let's use the proper flag. Despite this, sometimes we may still end up into negative reports, so let's ignore them in CI since it's not worth breaking the build because of these coverage-parsing failures.
23 lines
903 B
Plaintext
23 lines
903 B
Plaintext
# lcov and genhtml configuration
|
||
# See lcovrc(5)
|
||
|
||
# Always enable branch coverage
|
||
lcov_branch_coverage = 1
|
||
|
||
# Exclude precondition assertions, as we can never reasonably get full branch
|
||
# coverage of them, as they should never normally fail.
|
||
# Similarly exclude g_clear_*() functions (such as g_clear_object(),
|
||
# g_clear_pointer(), etc.) as it’s not useful to test both sides of the branch
|
||
# in them.
|
||
# See https://github.com/linux-test-project/lcov/issues/44
|
||
lcov_excl_br_line = LCOV_EXCL_BR_LINE|g_return_if_fail|g_return_val_if_fail|g_assert|g_assert_|g_clear_
|
||
|
||
# Similarly for unreachable assertions.
|
||
lcov_excl_line = LCOV_EXCL_LINE|g_return_if_reached|g_return_val_if_reached|g_assert_not_reached
|
||
|
||
# When using dtrace some temporary files may be leaked as source files
|
||
ignore_errors = source
|
||
|
||
# Sometimes we may have negative counting despite using atomic profile update
|
||
ignore_errors = negative
|