Skip Menu |

This queue is for tickets about the Test-Dir CPAN distribution.

Report information
The Basics
Id: 75590
Status: resolved
Priority: 0/
Queue: Test-Dir

People
Owner: MTHURN [...] cpan.org
Requestors: APOCAL [...] cpan.org
mriehle [...] mriehle.com
Cc:
AdminCc:

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



Subject: Testsuite fails on Ubuntu 11.04 Perl-5.10.1
Hello, I was installing a ton of modules on this new OS and saw this failure. Attached is the test log, please let me know how I can help you fix this! -- ~Apocalypse
Subject: test-dir.txt
[MSG] Checksum matches for 'Test-Dir-1.013.tar.gz' [MSG] Extracted 'Test-Dir-1.013/' [MSG] Extracted 'Test-Dir-1.013/Changes' [MSG] Extracted 'Test-Dir-1.013/inc/' [MSG] Extracted 'Test-Dir-1.013/inc/Module/' [MSG] Extracted 'Test-Dir-1.013/inc/Module/Install/' [MSG] Extracted 'Test-Dir-1.013/inc/Module/Install/Base.pm' [MSG] Extracted 'Test-Dir-1.013/inc/Module/Install/Can.pm' [MSG] Extracted 'Test-Dir-1.013/inc/Module/Install/Fetch.pm' [MSG] Extracted 'Test-Dir-1.013/inc/Module/Install/Makefile.pm' [MSG] Extracted 'Test-Dir-1.013/inc/Module/Install/Metadata.pm' [MSG] Extracted 'Test-Dir-1.013/inc/Module/Install/Win32.pm' [MSG] Extracted 'Test-Dir-1.013/inc/Module/Install/WriteAll.pm' [MSG] Extracted 'Test-Dir-1.013/inc/Module/Install.pm' [MSG] Extracted 'Test-Dir-1.013/lib/' [MSG] Extracted 'Test-Dir-1.013/lib/Test/' [MSG] Extracted 'Test-Dir-1.013/lib/Test/Dir/' [MSG] Extracted 'Test-Dir-1.013/lib/Test/Dir/Base.pm' [MSG] Extracted 'Test-Dir-1.013/lib/Test/Dir.pm' [MSG] Extracted 'Test-Dir-1.013/lib/Test/Folder.pm' [MSG] Extracted 'Test-Dir-1.013/Makefile.PL' [MSG] Extracted 'Test-Dir-1.013/MANIFEST' [MSG] Extracted 'Test-Dir-1.013/META.yml' [MSG] Extracted 'Test-Dir-1.013/README' [MSG] Extracted 'Test-Dir-1.013/t/' [MSG] Extracted 'Test-Dir-1.013/t/dir.t' [MSG] Extracted 'Test-Dir-1.013/t/folder.t' [MSG] Extracted 'Test-Dir-1.013/t/full_dir/' [MSG] Extracted 'Test-Dir-1.013/t/full_dir/testfile.txt' [MSG] Extracted 'Test-Dir-1.013/t/full_folder/' [MSG] Extracted 'Test-Dir-1.013/t/full_folder/testfile.txt' [MSG] Extracted 'Test-Dir-1.013/t/pod-coverage.t' [MSG] Extracted 'Test-Dir-1.013/t/pod.t' [MSG] Extracted 'Test-Dir-1.013/t/test_dir/' [MSG] Extracted 'Test-Dir-1.013/t/test_dir/exists' [MSG] Extracted 'Test-Dir-1.013/t/test_folder/' [MSG] Extracted 'Test-Dir-1.013/t/test_folder/exists' [MSG] Extracted 'Test::Dir' to '/root/.cpanplus/5.10.1/build/Test-Dir-1.013' Running [/usr/bin/perl /usr/local/bin/cpanp-run-perl /root/.cpanplus/5.10.1/build/Test-Dir-1.013/Makefile.PL INSTALLDIRS=site]... Cannot determine perl version info from lib/Test/Dir.pm Checking if your kit is complete... Looks good Writing Makefile for Test::Dir Running [/usr/bin/make]... cp lib/Test/Dir/Base.pm blib/lib/Test/Dir/Base.pm cp lib/Test/Dir.pm blib/lib/Test/Dir.pm cp lib/Test/Folder.pm blib/lib/Test/Folder.pm Manifying blib/man3/Test::Dir::Base.3pm Manifying blib/man3/Test::Folder.3pm Manifying blib/man3/Test::Dir.3pm Running [/usr/bin/make test]... PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t # Failed test at t/dir.t line 70. # STDOUT is: # not ok 1 - dir t/full_dir is not readable # # not: # ok 1 - dir t/full_dir is not readable # # as expected # STDERR is: # # directory [t/full_dir] is readable # # Failed test 'dir t/full_dir is not readable' # # at /root/.cpanplus/5.10.1/build/Test-Dir-1.013/blib/lib/Test/Dir/Base.pm line 110. # # not: # # as expected # Failed test at t/dir.t line 74. # STDOUT is: # not ok 1 - dir t/full_dir is not writable # # not: # ok 1 - dir t/full_dir is not writable # # as expected # STDERR is: # # directory [t/full_dir] is writable # # Failed test 'dir t/full_dir is not writable' # # at /root/.cpanplus/5.10.1/build/Test-Dir-1.013/blib/lib/Test/Dir/Base.pm line 126. # # not: # # as expected # Failed test at t/dir.t line 78. # STDOUT is: # not ok 1 - dir t/full_dir is not executable # # not: # ok 1 - dir t/full_dir is not executable # # as expected # STDERR is: # # directory [t/full_dir] is executable # # Failed test 'dir t/full_dir is not executable' # # at /root/.cpanplus/5.10.1/build/Test-Dir-1.013/blib/lib/Test/Dir/Base.pm line 142. # # not: # # as expected t/dir.t ........... Failed 3/13 subtests t/folder.t ........ ok t/pod-coverage.t .. ok t/pod.t ........... ok Test Summary Report ------------------- t/dir.t (Wstat: 0 Tests: 13 Failed: 3) Failed tests: 11-13 Files=4, Tests=27, 1 wallclock secs ( 0.06 usr 0.02 sys + 0.19 cusr 0.03 csys = 0.30 CPU) Result: FAIL Failed 1/4 test programs. 3/27 subtests failed. make: *** [test_dynamic] Error 255 The tests for 'Test::Dir' failed. Would you like me to proceed anyway or should we abort? Proceed anyway? [y/N]: n [ERROR] Unable to create a new distribution object for 'Test::Dir' -- cannot continue
Subject: Make test fails when run as root
Date: Tue, 6 Mar 2012 14:17:01 -0800
To: bug-Test-Dir [...] rt.cpan.org
From: Michael Riehle <mriehle [...] mriehle.com>
Attempting to install Test-Dir fails when t/dir.t is run. A little investigation shows that the test will always fail when the user running it is root, at least on CentOS 5.6 and FreeBSD 7.0. Attached to this email is a fixed version of dir.t.

Message body is not shown because sender requested not to inline it.

The change is to set the effective user ID to 1006 (the owner of the file being tested in the distribution) before running each test. Thoroughness suggests that the EUID should be set back to the real user ID before each chmod of the file.
Thank you for the contribution! New release uploaded. -- - - Martin 'Kingpin' Thurn
Subject: Re: [rt.cpan.org #75590] Make test fails when run as root
Date: Tue, 06 Mar 2012 19:39:12 -0800
To: bug-Test-Dir [...] rt.cpan.org
From: Michael Riehle <mriehle [...] mriehle.com>
Fixing this should also fix report 68027. And, no problem. I'm happy to help. On 03/06/2012 07:27 PM, Martin Thurn via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=75590> > > Thank you for the contribution! New release uploaded. >