]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: do an initial coverage capture
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 24 Mar 2023 20:15:28 +0000 (21:15 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 25 Mar 2023 12:29:40 +0000 (12:29 +0000)
commit7fdd6e157a6bc2898118f9fb64fb8def2f902054
treef0fc52f633d444bc0ce86628c0fc1672aab2dcb4
parentff155c81620bc4e1ccce27d4d5194707048d8143
test: do an initial coverage capture

I noticed that our coverage reports miss some files completely - this
happens when the test doesn't touch the code in them at all, so the
generated coverage data (and resulting reports) have no information
about them. Let's fix this by doing an initial zero coverage capture
that contains a zeroed counter for every instrumented line in every
file, so when we later merge it with a capture from the test, it shows up
with a missing coverage instead of not showing at all.
test/test-functions