Skip Menu |

This queue is for tickets about the Cache CPAN distribution.

Report information
The Basics
Id: 102316
Status: resolved
Priority: 0/
Queue: Cache

People
Owner: Nobody in particular
Requestors: om [...] iki.fi
Cc:
AdminCc:

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



Subject: Cache 2.10 test fails due to missing Time::HiRes
Date: Tue, 24 Feb 2015 14:17:34 +0200
To: bug-Cache [...] rt.cpan.org
From: "Otto J. Makela" <om [...] iki.fi>
Installing Cache-2.10 on a fairly bare RHEL system fails because I have no Time::HiRes installed. Test file_fifo.t recognizes this and skips, but file_lru.t does not and fails. Should file_lru.t also be skipped? ---- # perl -MCPAN -e 'install Cache' CPAN: Storable loaded ok (v2.20) Going to read '/root/.cpan/Metadata' Database was generated on Tue, 24 Feb 2015 11:41:02 GMT Running install for module 'Cache' CPAN: YAML loaded ok (v1.14) Running make for S/SH/SHLOMIF/Cache-2.10.tar.gz CPAN: Digest::SHA loaded ok (v5.47) CPAN: Compress::Zlib loaded ok (v2.068) Checksum for /root/.cpan/sources/authors/id/S/SH/SHLOMIF/Cache-2.10.tar.gz ok Cache-2.10 Cache-2.10/TODO Cache-2.10/Changes Cache-2.10/LICENSE Cache-2.10/MANIFEST Cache-2.10/Build.PL Cache-2.10/META.yml Cache-2.10/design.dia Cache-2.10/MANIFEST.SKIP Cache-2.10/META.json Cache-2.10/README Cache-2.10/lib Cache-2.10/lib/Cache.pm Cache-2.10/lib/Cache Cache-2.10/lib/Cache/File.pm Cache-2.10/lib/Cache/Memory.pm Cache-2.10/lib/Cache/Null.pm Cache-2.10/lib/Cache/Entry.pm Cache-2.10/lib/Cache/IOString.pm Cache-2.10/lib/Cache/RemovalStrategy.pm Cache-2.10/lib/Cache/Tester.pm Cache-2.10/lib/Cache/File Cache-2.10/lib/Cache/File/Heap.pm Cache-2.10/lib/Cache/File/Entry.pm Cache-2.10/lib/Cache/File/Handle.pm Cache-2.10/lib/Cache/Null Cache-2.10/lib/Cache/Null/Entry.pm Cache-2.10/lib/Cache/Memory Cache-2.10/lib/Cache/Memory/HeapElem.pm Cache-2.10/lib/Cache/Memory/Entry.pm Cache-2.10/lib/Cache/RemovalStrategy Cache-2.10/lib/Cache/RemovalStrategy/LRU.pm Cache-2.10/lib/Cache/RemovalStrategy/FIFO.pm Cache-2.10/inc Cache-2.10/inc/Devel Cache-2.10/inc/Devel/AssertOS.pm Cache-2.10/inc/Devel/CheckOS.pm Cache-2.10/inc/Devel/AssertOS Cache-2.10/inc/Devel/AssertOS/Unicos.pm Cache-2.10/inc/Devel/AssertOS/AIX.pm Cache-2.10/inc/Devel/AssertOS/MirOSBSD.pm Cache-2.10/inc/Devel/AssertOS/Unix.pm Cache-2.10/inc/Devel/AssertOS/OSF.pm Cache-2.10/inc/Devel/AssertOS/DGUX.pm Cache-2.10/inc/Devel/AssertOS/MachTen.pm Cache-2.10/inc/Devel/AssertOS/SunOS.pm Cache-2.10/inc/Devel/AssertOS/SysVr5.pm Cache-2.10/inc/Devel/AssertOS/QNX.pm Cache-2.10/inc/Devel/AssertOS/HPUX.pm Cache-2.10/inc/Devel/AssertOS/SCO.pm Cache-2.10/inc/Devel/AssertOS/Linux.pm Cache-2.10/inc/Devel/AssertOS/DragonflyBSD.pm Cache-2.10/inc/Devel/AssertOS/OpenBSD.pm Cache-2.10/inc/Devel/AssertOS/FreeBSD.pm Cache-2.10/inc/Devel/AssertOS/NetBSD.pm Cache-2.10/inc/Devel/AssertOS/SysVr4.pm Cache-2.10/inc/Devel/AssertOS/Interix.pm Cache-2.10/inc/Devel/AssertOS/MacOSX.pm Cache-2.10/inc/Devel/AssertOS/BSDOS.pm Cache-2.10/inc/Devel/AssertOS/Solaris.pm Cache-2.10/inc/Devel/AssertOS/MidnightBSD.pm Cache-2.10/inc/Devel/AssertOS/Irix.pm Cache-2.10/inc/Devel/AssertOS/Dynix.pm Cache-2.10/inc/Devel/AssertOS/QNX Cache-2.10/inc/Devel/AssertOS/QNX/Neutrino.pm Cache-2.10/inc/Devel/AssertOS/QNX/v4.pm Cache-2.10/inc/Test Cache-2.10/inc/Test/Run Cache-2.10/inc/Test/Run/Builder.pm Cache-2.10/t Cache-2.10/t/null.t Cache-2.10/t/memory_tie.t Cache-2.10/t/style-trailing-space.t Cache-2.10/t/00basic.t Cache-2.10/t/file_fifo.t Cache-2.10/t/memory_lru.t Cache-2.10/t/file_tie.t Cache-2.10/t/01fileheap.t Cache-2.10/t/memory_fifo.t Cache-2.10/t/memory.t Cache-2.10/t/pod.t Cache-2.10/t/file.t Cache-2.10/t/memory_set_namespace_rt32339.t Cache-2.10/t/file_lru.t Cache-2.10/scripts Cache-2.10/scripts/bump-version-number.pl CPAN: File::Temp loaded ok (v0.22) CPAN.pm: Going to build S/SH/SHLOMIF/Cache-2.10.tar.gz Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Cache' version '2.10' CPAN: Module::Build loaded ok (v0.4211) Building Cache SHLOMIF/Cache-2.10.tar.gz ./Build -- OK Running Build test t/00basic.t ....................... ok t/01fileheap.t .................... ok t/file.t .......................... ok t/file_fifo.t ..................... skipped: Time::HiRes is required for this test. t/file_lru.t ...................... Can't locate Time/HiRes.pm in @INC (@INC contains: /root/.cpan/build/Cache-2.10-mloNE5/blib/lib /root/.cpan/build/Cache-2.10-mloNE5/blib/arch inc ./inc /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/file_lru.t line 5. BEGIN failed--compilation aborted at t/file_lru.t line 5. t/file_lru.t ...................... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/file_tie.t ...................... ok t/memory.t ........................ ok t/memory_fifo.t ................... ok t/memory_lru.t .................... ok t/memory_set_namespace_rt32339.t .. ok t/memory_tie.t .................... ok t/null.t .......................... ok t/pod.t ........................... skipped: Test::Pod 1.14 required for testing POD t/style-trailing-space.t .......... skipped: Test::TrailingSpace required for trailing space test. Test Summary Report ------------------- t/file_lru.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=14, Tests=548, 15 wallclock secs ( 0.15 usr 0.02 sys + 1.60 cusr 0.52 csys = 2.29 CPU) Result: FAIL Failed 1/14 test programs. 0/548 subtests failed. SHLOMIF/Cache-2.10.tar.gz ./Build test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports SHLOMIF/Cache-2.10.tar.gz Running Build install make test had returned bad status, won't install without force -- /* * * Otto J. Makela <om@iki.fi> * * * * * * * * * */ /* Phone: +358 40 765 5772, ICBM: N 60 10' E 24 55' */ /* Mail: Mechelininkatu 26 B 27, FI-00100 Helsinki */ /* * * Computers Rule 01001111 01001011 * * * * * * */
On Tue Feb 24 07:17:53 2015, om@iki.fi wrote: Show quoted text
> Installing Cache-2.10 on a fairly bare RHEL system fails because I have > no Time::HiRes installed. Test file_fifo.t recognizes this and skips, > but file_lru.t does not and fails. Should file_lru.t also be skipped? >
Yes, it should. There was already a mechanism for skipping the test file, if Time::HiRes isn't there, but there was also a stray "use Time::HiRes;" line in file_lru.t . This was removed in 2.11. Please test. Thanks for reporting this. Regards, -- Shlomi Fish