In t/Path_root.t -- a test file which runs only when the tester is root -- there is a SKIP block with the following condition:
#####
SKIP: {
skip('Skip until RT 85878 is fixed', 1);
#####
https://rt.cpan.org/Ticket/Display.html?id=85878 was marked Resolved on Oct 11 2015. Hence, the stated rationale for one SKIP block in t/Path_root.t no longer pertains.
However, when we remove the SKIP and run the file as root, we get test failures. See attachment. Not yet diagnosed further.
Thank you very much.
Jim Keenan
Subject: | unskipped-test-failure.txt |
root@localhost:/home/jkeenan/gitwork/File-Path # prove -vb t/Path_root.t
t/Path_root.t ..
1..8
ok 1 - created a directory owned by nobody...
ok 2 - ... owned by 65534
ok 3 - created a directory owned by group nobody...
ok 4 - ... owned by group 65534
ok 5 - created a directory owned by nobody:nobody...
ok 6 - ... owned by 65534
ok 7 - ... owned by group 65534
not ok 8 - created a directory not owned by nobodz:nobodz...
# Failed test 'created a directory not owned by nobodz:nobodz...'
# at t/Path_root.t line 72.
# 'unable to map nobodz to a uid, ownership not changed: No such file or directory at t/Path_root.t line 69.
# unable to map nobodz to a gid, group ownership not changed: No such file or directory at t/Path_root.t line 69.
# '
# doesn't match '(?^:\Aunable to map nobodz to a uid, ownership not changed: .* at \S+ line \d+
# unable to map nobodz to a gid, group ownership not changed: .* at \S+ line \d+\b)'
# Looks like you failed 1 test of 8.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/8 subtests
Test Summary Report
-------------------
t/Path_root.t (Wstat: 256 Tests: 8 Failed: 1)
Failed test: 8
Non-zero exit status: 1
Files=1, Tests=8, 0 wallclock secs ( 0.01 usr 0.03 sys + 0.03 cusr 0.02 csys = 0.09 CPU)
Result: FAIL