diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/run-tests.yml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 10f238cc..7ce55b6e 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -484,9 +484,17 @@ jobs: - name: Generate coverage reports (default(txt), csv, html) run: | mkdir -p tests/report - gcovr --config=tests/gcovr.conf --output=tests/report/accel-ppp.txt - gcovr --config=tests/gcovr.conf --csv --output=tests/report/accel-ppp.csv - gcovr --config=tests/gcovr.conf --html --html-details --output=tests/report/accel-ppp.html + # gcov reports negative branch counters now and then (gcc bug 68080). + # gcovr 6 and later stop with a parse error unless told to carry on, + # older ones do not know the option at all, so ask before using it. + IGNORE="" + if gcovr --help 2>&1 | grep -q negative_hits; then + IGNORE="--gcov-ignore-parse-errors=negative_hits.warn_once_per_file" + fi + echo "gcovr `gcovr --version | head -1`, extra options: '$IGNORE'" + gcovr --config=tests/gcovr.conf $IGNORE --output=tests/report/accel-ppp.txt + gcovr --config=tests/gcovr.conf $IGNORE --csv --output=tests/report/accel-ppp.csv + gcovr --config=tests/gcovr.conf $IGNORE --html --html-details --output=tests/report/accel-ppp.html - name: Show default coverage report run: cat tests/report/accel-ppp.txt |
