Closed Bug 1471571 Opened 6 years ago Closed 6 years ago

Reset gcov counters before every test and dump them before shutdown in per-test coverage mode

Categories

(Testing :: Code Coverage, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: marco, Assigned: marco)

References

(Blocks 1 open bug)

Details

In order to have more precise coverage data in the per-test case, we should reset the counters before running a test, and dump them before shutting down. In bug 1470151 we have laid the foundations for doing this (by doing it on Linux and for xpcshell). We should expand it to other suites, and then enable it on Windows too (which is going to require some changes to the C++ code, as Clang doesn't have __gcov_dump and __gcov_reset but only __gcov_flush).
Blocks: 1471572
Depends on: 1471573
Depends on: 1471575
Depends on: 1471576
Depends on: 1476574
Depends on: 1476668
Assignee: nobody → mcastelluccio
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
No longer depends on: 1476668
You need to log in before you can comment on or make changes to this bug.