Skip to content

2.0 release: Wrong error code used at lcovutil.pm:4222 #259

@jeremybettis

Description

@jeremybettis

The code at lcovutil.pm:4222 in the 2.0 release is incorrect. It uses $lcovutil::ERROR_INCONSISTENT which doesn't exist, but it should be $lcovutil::ERROR_INCONSISTENT_DATA.

This was fixed in commit 6f48bf2, which is not included in the 2.0 release.

Can you either apply this patch to the release branch, or create a 2.0.1 release that includes that commit?

--- lcov-2.0/lib/lcovutil.pm
+++ lcov-2.0-fixed/lib/lcovutil.pm
@@ -4219,7 +4219,7 @@
                         } else {
                             if ($f->end_line() != $func->end_line()) {
                                 lcovutil::ignorable_error(
-                                       $lcovutil::ERROR_INCONSISTENT,
+                                       $lcovutil::ERROR_INCONSISTENT_DATA,
                                        '"' . $func->file() .
                                            '":' . $first . ': function \'' .
                                            $func->name() . ' last line is ' .

The error message I saw looked like:

genhtml: ERROR: "/mnt/host/source/src/platform/ec/common/vboot/vb21_lib.c":18: function 'vb21_is_packed_key
_valid last line is 24 but is 25 in testcase 'vboot'
        (use "genhtml --ignore-errors code_ ..." to bypass this error)

And code_ is not a valid error for --ignore-errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions