Closed Bug 2008110 Opened 8 months ago Closed 8 months ago

Linux code coverage is missing C/C++ data

Categories

(Testing :: Code Coverage, defect)

defect

Tracking

(firefox-esr115 wontfix, firefox-esr140 wontfix, firefox146 wontfix, firefox147 wontfix, firefox148 fixed)

RESOLVED FIXED
148 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 --- wontfix
firefox146 --- wontfix
firefox147 --- wontfix
firefox148 --- fixed

People

(Reporter: nicolas.guichard, Assigned: nicolas.guichard)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

The raw code coverage data (.gcno and .gcda files) are generated by Clang, but grcov tries parsing them with GCC's gcov.

There are 2 solutions to this issue:

  1. make grcov use llvm-cov instead
  2. pass the --llvm flag to grcov to have it parse the gcno files directly

The 2nd option is what is already done on Windows and macOS, so I think we should just extend that to Linux.

grcov calls GCC's gcov by default to parse gcno files, this tells it
instead that the files were generated by LLVM and that it should parse
them as such.

Without this, Linux code coverage reports were missing all C/C++ files.

Set release status flags based on info from the regressing bug 1499663

Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 148 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: