You've already forked gnatcoverage
mirror of
https://github.com/AdaCore/gnatcoverage.git
synced 2026-02-12 12:44:55 -08:00
Test drivers must not be considered as units of interest in `SCOV.tc` tests: their coverage is never checked, and they are not in the closure of the GPR main (there is one GPR file generated for each test driver), so the other mains are not compiled (no ALI file generated for them). When the testsuite runs in GPR mode, the set of units of interest is conveyed by the project file (rather than by command line options other than `-P` itself), so project files generated by `SCOV.tc` must exclude mains from the list of units of interest. Currently they are not, and thus `gnatcov coverage` complains that it cannot find ALI files for test drivers.