Commit b8bd1ab
Tamas Vajk
Handle zero profraw files gracefully in coverage collection
When a test target is not instrumented (e.g. due to
--instrumentation_filter), no .profraw files are produced. Previously
llvm-profdata merge would fail with "no input files specified".
Write an empty coverage file and exit successfully instead, so that
uninstrumented test targets don't break coverage collection.1 parent 3c19d3d commit b8bd1ab
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
169 | 178 | | |
170 | 179 | | |
171 | 180 | | |
| |||
0 commit comments