Skip to content

Commit 8b72e34

Browse files
committed
ci(cpp): 覆盖率 lcov 增加 --ignore-errors negative
多线程入站测试(文件下发/入站校验)并发更新 gcov 计数器可产生 瞬态负值,geninfo 报 'Unexpected negative count' 中断覆盖率生成。 按 geninfo 自身建议追加 negative 容错(与既有 mismatch/source/gcov 同款处理),测试本身不受影响(Test 步骤已 ✓)。
1 parent 643a57e commit 8b72e34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci-sdk-cpp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
lcov --capture \
4848
--directory build/linux-x64-debug-tests-vcpkg \
4949
--output-file build/linux-x64-debug-tests-vcpkg/coverage.raw.info \
50-
--ignore-errors mismatch,source,gcov
50+
--ignore-errors mismatch,source,gcov,negative
5151
lcov --remove build/linux-x64-debug-tests-vcpkg/coverage.raw.info \
5252
'/usr/*' \
5353
'*/vcpkg_installed/*' \

0 commit comments

Comments
 (0)