Skip Menu |

This queue is for tickets about the File-Path CPAN distribution.

Report information
The Basics
Id: 120557
Status: resolved
Priority: 0/
Queue: File-Path

People
Owner: jkeenan [...] cpan.org
Requestors: jkeenan [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.12
Fixed in: (no value)



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
Please see: https://github.com/rpcme/File-Path/pull/40 I think we can get by with 2 'like' tests, each of which matches the warning against part of the overall expected result. When run as 'root', I now get: ##### root@localhost:/home/jkeenan/gitwork/File-Path # prove -vb t/Path_root.t t/Path_root.t .. 1..9 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 ok 8 - created a directory not owned by nobodz:nobodz... ok 9 - created a directory not owned by nobodz:nobodz... ok All tests successful. Files=1, Tests=9, 0 wallclock secs ( 0.00 usr 0.02 sys + 0.02 cusr 0.02 csys = 0.07 CPU) Result: PASS ##### Thank you very much. Jim Keenan
On Wed Mar 08 16:05:32 2017, JKEENAN wrote: Show quoted text
> Please see: > > https://github.com/rpcme/File-Path/pull/40 > > I think we can get by with 2 'like' tests, each of which matches the > warning against part of the overall expected result. > > When run as 'root', I now get: > > ##### > root@localhost:/home/jkeenan/gitwork/File-Path # prove -vb > t/Path_root.t > t/Path_root.t .. > 1..9 > 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 > ok 8 - created a directory not owned by nobodz:nobodz... > ok 9 - created a directory not owned by nobodz:nobodz... > ok > All tests successful. > Files=1, Tests=9, 0 wallclock secs ( 0.00 usr 0.02 sys + 0.02 cusr > 0.02 csys = 0.07 CPU) > Result: PASS > ##### > > Thank you very much. > Jim Keenan
These changes have been incorporated in t/Path_root.t. File-Path version 2.13 has been released to CPAN. Marking ticket Resolved. Thank you very much. Jim Keenan