Skip to content

Tests fail with file-5.47 #31

@orlitzky

Description

@orlitzky

file-5.47 was released a few days ago: https://mailman.astron.com/pipermail/file/2026-February/001570.html

Given the limited scope of the changes, I feel like I should be able to identify the problem, but so far I haven't had any luck:

t/oo-api.t .............................. 
        #   Failed test 'describe_contents /home/mjo/src/File-LibMagic-1.23/t/samples/tiny.pdf'
        #   at t/oo-api.t line 137.
        #          got: PDF document, version %.%
        #     expected: any one of ...
        #              PDF document, version 1.4

        #   Failed test 'describe_contents /home/mjo/src/File-LibMagic-1.23/t/samples/tiny.pdf as ref'
        #   at t/oo-api.t line 137.
        #          got: PDF document, version %.%
        #     expected: any one of ...
        #              PDF document, version 1.4
        # Looks like you failed 2 tests of 6.

    #   Failed test 'old API with /home/mjo/src/File-LibMagic-1.23/t/samples/tiny.pdf'
    #   at t/oo-api.t line 138.

            #   Failed test 'description'
            #   at t/oo-api.t line 214.
            #          got: PDF document, version %.%
            #     expected: any one of ...
            #              PDF document, version 1.4
            # Looks like you failed 1 test of 4.

        #   Failed test 'info_from_string'
        #   at t/oo-api.t line 216.

            #   Failed test 'description'
            #   at t/oo-api.t line 225.
            #          got: PDF document, version %.%
            #     expected: any one of ...
            #              PDF document, version 1.4
            # Looks like you failed 1 test of 4.

        #   Failed test 'info_from_string as ref'
        #   at t/oo-api.t line 227.

            #   Failed test 'description'
            #   at t/oo-api.t line 233.
            #          got: PDF document, version %.%
            #     expected: any one of ...
            #              PDF document, version 1.4
            # Looks like you failed 1 test of 5.

        #   Failed test 'info_from_handle'
        #   at t/oo-api.t line 241.

            #   Failed test 'description'
            #   at t/oo-api.t line 252.
            #          got: PDF document, version %.%
            #     expected: any one of ...
            #              PDF document, version 1.4
            # Looks like you failed 1 test of 4.

        #   Failed test 'info_from_handle - handle from scalar ref'
        #   at t/oo-api.t line 256.
        # Looks like you failed 4 tests of 5.

    #   Failed test 'new API with /home/mjo/src/File-LibMagic-1.23/t/samples/tiny.pdf'
    #   at t/oo-api.t line 143.
    # Looks like you failed 2 tests of 6.
t/oo-api.t .............................. 1/? 
#   Failed test 'standard magic file'
#   at t/oo-api.t line 46.
# Looks like you failed 1 test of 3.

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