diff --git a/tests/local-test.sh b/tests/local-test.sh index 725998d2..80412925 100644 --- a/tests/local-test.sh +++ b/tests/local-test.sh @@ -31,7 +31,7 @@ $build_dir/$executable --gtest_output=xml:$result_report_dir LCOV_MAJOR=$(lcov --version 2>/dev/null | grep -oE '[0-9]+(\.[0-9]+)+' | head -1 | cut -d. -f1) LCOV_IGN="" if [ "${LCOV_MAJOR:-0}" -ge 2 ]; then - LCOV_IGN="--ignore-errors inconsistent,mismatch" + LCOV_IGN="--ignore-errors inconsistent,mismatch,unused" fi lcov $LCOV_IGN -d $build_dir -c -o $build_dir/coverage.info diff --git a/tests/qmake-lcov-test.sh b/tests/qmake-lcov-test.sh index 944c5751..b7000cac 100644 --- a/tests/qmake-lcov-test.sh +++ b/tests/qmake-lcov-test.sh @@ -23,7 +23,7 @@ $build_dir/$executable --gtest_output=xml:$result_report_dir LCOV_MAJOR=$(lcov --version 2>/dev/null | grep -oE '[0-9]+(\.[0-9]+)+' | head -1 | cut -d. -f1) LCOV_IGN="" if [ "${LCOV_MAJOR:-0}" -ge 2 ]; then - LCOV_IGN="--ignore-errors inconsistent,mismatch" + LCOV_IGN="--ignore-errors inconsistent,mismatch,unused" fi lcov $LCOV_IGN -d $build_dir -c -o $build_dir/coverage.info diff --git a/tests/test-prj-running.sh b/tests/test-prj-running.sh index 6e193d26..4f4e2248 100755 --- a/tests/test-prj-running.sh +++ b/tests/test-prj-running.sh @@ -59,7 +59,7 @@ workdir="${build_path}" LCOV_MAJOR=$(lcov --version 2>/dev/null | grep -oE '[0-9]+(\.[0-9]+)+' | head -1 | cut -d. -f1) LCOV_IGN="" if [ "${LCOV_MAJOR:-0}" -ge 2 ]; then - LCOV_IGN="--ignore-errors inconsistent,mismatch" + LCOV_IGN="--ignore-errors inconsistent,mismatch,unused" fi lcov $LCOV_IGN --directory "${workdir}" --zerocounters || true