Skip to content

6.1 & 6.2: t/29unreadable.t tests fail when run as root #27

@veryrusty

Description

@veryrusty

It's not uncommon to have perl modules installed by root in docker images, especially for one-off, quick tasks. Doing so causes the unreadable files tests to fail in releases 6.1 and 6.2.

eg docker run --rm -ti perl:5.38 bash -c 'cpanm Module::Pluggable; cat /root/.cpanm/work/*/build.log'

and the root user can read the write-only files:

#   Failed test at t/29unreadable.t line 31.
#     Structures begin differing at:
#          $got->[0] = 'Unreadable::Foo'
#     $expected->[0] = Does not exist

#   Failed test at t/29unreadable.t line 36.
#     Structures begin differing at:
#          $got->[0] = 'Unreadable::Foo'
#     $expected->[0] = Does not exist
# Looks like you failed 2 tests of 6.
t/29unreadable.t .............

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions