Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: coverage: gcovr to ignore negative counters
Apply a workaround for an issue introduced with bc8b7dd for code coverage collection at qemu_x86 when gcov data was broken because of optimized out memcpy() in write_u64() static inline function, so gcovr parser fails with "gcovr.gcov_parser.NegativeHits: Got negative hit value in gcov line 'branch 1 taken -1'". Add gcovr command line option to ignore such errors (since v.6.0): "--gcov-ignore-parse-errors=negative_hits.warn_once_per_file" (cherry picked from commit 97fab83) Original-Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com> GitOrigin-RevId: 97fab83 Change-Id: I1be6b368a594ede2d6007e83466706abc5767b59 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5004819 Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com> Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com> Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com> Tested-by: Fabio Baltieri <fabiobaltieri@google.com>
- Loading branch information