Commit b88a351
committed
🐛 Emit absolute #line paths in generated Partials to fix Windows gcov misattribution
Some GCC/mingw-w64 builds corrupt gcov's --json-format line attribution for
#line-remapped source when given a relative path compiled from a sufficiently
long/deep working directory, silently misattributing coverage hits to the
wrong line (observed on Windows CI). Absolute #line paths sidestep the buggy
resolution step entirely; gcovr's own --root handling relativizes them back
to clean paths in reports, so there's no user-visible change to output.
Reverts the GCC 14 pin added to Windows CI as an earlier, now-disproven fix
attempt -- the real defect isn't compiler-version-specific.1 parent 616d226 commit b88a351
3 files changed
Lines changed: 25 additions & 15 deletions
File tree
- .github/workflows
- lib/ceedling/generators
- spec/units/generators
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | 201 | | |
213 | 202 | | |
214 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
153 | 170 | | |
154 | 171 | | |
155 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
606 | 610 | | |
607 | 611 | | |
608 | 612 | | |
609 | | - | |
| 613 | + | |
610 | 614 | | |
611 | 615 | | |
612 | 616 | | |
613 | 617 | | |
614 | | - | |
| 618 | + | |
615 | 619 | | |
616 | 620 | | |
617 | 621 | | |
| |||
0 commit comments