Skip Menu |
 

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

Report information
The Basics
Id: 45551
Status: resolved
Priority: 0/
Queue: DBIx-Class

People
Owner: Nobody in particular
Requestors: REHSACK [...] cpan.org
Cc:
AdminCc:

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



Subject: Tests using DBIx::Class::Test::SQLite wont find the base class
Download (untitled) / with headers
text/plain 1.7k
I'm currently packaging DBIx::Class for PkgSrc and wanted to do all tests - so I installed the missing modules (Class::Trigger, DBIx::ContextualFetch, ...). Now the tests in sub-directories raise errors: t/cdbi/has_many_loads_foreign_class.t ............ Base class package "DBIx::Class::Test::SQLite" is empty. (Perhaps you need to 'use' the module which defines that package first, or make that module available in @INC (@INC contains: t/cdbi/testlib /usr/pkgsrc/databases/p5-DBIx-Class/work/DBIx-Class-0.08101/inc /usr/pkgsrc/databases/p5-DBIx-Class/work/DBIx-Class-0.08101/blib/lib /usr/pkgsrc/databases/p5-DBIx-Class/work/DBIx-Class-0.08101/blib/arch /usr/pkg/lib/perl5/site_perl/5.10.0/x86_64-freebsd-thread-multi /usr/pkg/lib/perl5/site_perl/5.10.0 /usr/pkg/lib/perl5/vendor_perl/5.10.0/x86_64-freebsd-thread-multi /usr/pkg/lib/perl5/vendor_perl/5.10.0 /usr/pkg/lib/perl5/vendor_perl /usr/pkg/lib/perl5/5.10.0/x86_64-freebsd-thread-multi /usr/pkg/lib/perl5/5.10.0 .). at t/cdbi/testlib/Director.pm line 5 BEGIN failed--compilation aborted at t/cdbi/testlib/Director.pm line 5. Compilation failed in require at t/cdbi/has_many_loads_foreign_class.t line 14. BEGIN failed--compilation aborted at t/cdbi/has_many_loads_foreign_class.t line 14. The tests are invoked from Makefile with: PERL_DL_NONLAZY=1 /usr/pkg/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/96multi_create/*.t t/cdbi/*.t t/cdbi/DeepAbstractSearch/*.t t/cdbi/abstract/*.t t/cdbi/sweet/*.t t/ordered/*.t t/prefetch/*.t t/resultset/*.t t/search/*.t It looks, t/lib is missing from the include list. Anyway - how should base now that DBIx::Class:Test::SQLite is to find in Test/SQLite.pm? You'd better require the lib before ...
Download (untitled) / with headers
text/plain 318b
On Wed Apr 29 04:53:27 2009, REHSACK wrote: Show quoted text
> It looks, t/lib is missing from the include list. Anyway - how should > base now that DBIx::Class:Test::SQLite is to find in Test/SQLite.pm? > You'd better require the lib before ...
Serves me right for not testing in a clean-room. Fixed in 0.08102 and shipped to CPAN.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.