]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: exclude gperf files from captured coverage
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 30 Apr 2024 11:13:50 +0000 (13:13 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 30 Apr 2024 13:42:45 +0000 (15:42 +0200)
commit9fe18055fe66dfcbe2b12afc386063109b84d7a0
tree3f0a8e58966e0978ab3eb4ffddca7c8dab9aa706
parentc89244842bf0b050b0e02476f31adae5bac711da
test: exclude gperf files from captured coverage

Recent lcov started complaining loudly about unknown lines in gperf
files:

...
Found gcov version: 13.2.1
Using intermediate gcov format
Recording 'internal' directories:
...
Finished processing 1634 GCNO files
Apply filtering..
Message summary:
  1 error message:
    range: 1
  28 warning messages:
    gcov: 27
    usage: 1
geninfo: ERROR: (range) unknown line '33' in /build/src/home/homed-gperf.gperf: there are only 22 lines in the file.
  Use 'geninfo --filter range' to remove out-of-range lines.
        (use "geninfo --ignore-errors range ..." to bypass this error)

Since we drop the coverage of built files from the final report anyway,
let's do it also when capturing both initial and real coverage to avoid
this error.
test/test-functions