Skip Menu |

This queue is for tickets about the Class-DBI-Sweet CPAN distribution.

Report information
The Basics
Id: 16591
Status: resolved
Worked: 15 min
Priority: 0/
Queue: Class-DBI-Sweet

People
Owner: PHRED [...] cpan.org
Requestors: rhesa [...] cpan.org
Cc:
AdminCc:

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



Subject: Test failures in 0.08
Running debian amd64 stable, but have also seen the same problems on CentOS 4.0 and Fedora Core 3. # running Build.PL installdirs=site /usr/bin/perl -I_build/lib Build.PL installdirs=site Checking whether your kit is complete... Looks good * Optional prerequisite Data::UUID isn't installed ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions of the modules indicated above before proceeding with this installation. t/08pager................................NOK 10# got: '5' # expected: '1' # Looks like you failed 1 tests of 10. t/cdbi-t-ocache/97-pod...................Can't locate Cache/MemoryCache.pm in @INC (@INC contains: /root/.cpan/build/Class-DBI-Sweet-0.08/blib/lib /root/.cpan/build/Class-DBI-Sweet-0.08/blib/arch /root/.cpan/build/Class-DBI-Sweet-0.08/_build/lib /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at t/cdbi-t-ocache/97-pod.t line 3. BEGIN failed--compilation aborted at t/cdbi-t-ocache/97-pod.t line 3. # Looks like your test died before it could output anything. t/cdbi-t-rescache/97-pod.................Can't locate Cache/MemoryCache.pm in @INC (@INC contains: /root/.cpan/build/Class-DBI-Sweet-0.08/blib/lib /root/.cpan/build/Class-DBI-Sweet-0.08/blib/arch /root/.cpan/build/Class-DBI-Sweet-0.08/_build/lib /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at t/cdbi-t-rescache/97-pod.t line 3. BEGIN failed--compilation aborted at t/cdbi-t-rescache/97-pod.t line 3. # Looks like your test died before it could output anything. Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/08pager.t 1 256 10 1 10.00% 10 t/cdbi-t-ocache/97-pod.t 2 512 ?? ?? % ?? t/cdbi-t-rescache/97-pod.t 2 512 ?? ?? % ?? 47 tests skipped. Failed 3/79 test scripts, 96.20% okay. 1/574 subtests failed, 99.83% okay. make: *** [test] Error 255 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force
Hi Marcus, Don't know where the first comment went to, so I'm posting this again as a reply. Here's a diff -u patch for both test files that fail. Must say that it's a bit silly to require a Cache module just for testing POD.... Rhesa --- t/cdbi-t-rescache/97-pod.t.orig 2006-02-21 16:53:48.000000000 -0800 +++ t/cdbi-t-rescache/97-pod.t 2006-02-21 16:51:36.000000000 -0800 @@ -1,6 +1,7 @@ use Test::More; use Class::DBI::Sweet; -use Cache::MemoryCache; +eval "use Cache::MemoryCache"; +plan skip_all => 'Cache::MemoryCache needed to test POD.' if $@; Class::DBI::Sweet->default_search_attributes({ use_resultset_cache => 1 }); Class::DBI::Sweet->cache(Cache::MemoryCache->new( { namespace => "SweetTest", default_expires_in => 60 } ) ); --- t/cdbi-t-ocache/97-pod.t.orig 2006-02-21 16:56:05.000000000 -0800 +++ t/cdbi-t-ocache/97-pod.t 2006-02-21 16:57:01.000000000 -0800 @@ -1,6 +1,7 @@ use Test::More; use Class::DBI::Sweet; -use Cache::MemoryCache; +eval "use Cache::MemoryCache"; +plan skip_all => 'Cache::MemoryCache needed to test POD.' if $@; Class::DBI::Sweet->default_search_attributes({ use_resultset_cache => 0 }); Class::DBI::Sweet->cache(Cache::MemoryCache->new( { namespace => "SweetTest", default_expires_in => 60 } ) );
Patch applied for 0.09, due shortly.