Subject: | Bug/typo in test? |
Date: | Wed, 17 Dec 2008 02:39:47 +0100 (CET) |
To: | bug-Rose-DBx-Garden-Catalyst [...] rt.cpan.org |
From: | Havard Eidnes <he [...] NetBSD.org> |
Hi,
I'm updating the perl package for this module in NetBSD's pkgsrc,
and notice that the selftest fails, even after I've fixed the
invocation of sqlite3 in the build environment pkgsrc sets up.
There appears to be a logic error/typo (this is version 0.12):
--- t/lib/MyDB.pm.orig 2008-12-17 02:30:18.000000000 +0100
+++ t/lib/MyDB.pm
@@ -27,7 +27,7 @@ $db = Path::Class::File->new( $base_pat
# create the db if it does not yet exist
if ( !-s $db ) {
- system("sqlite3 $db < $sql") and die "can't create $db with $sql: $!";
+ system("sqlite3 $db < $sql") or die "can't create $db with $sql: $!";
}
if ( !$db or !-s $db ) {
When this patch is applied, the tests succeed, but with a lot of
crud on stderr, such as
t/01-rdgc.........2/6 Argument "t/lib/MyRDGC/root/static/js/crud.js" isn't numeric in numeric eq (==) at /usr/pkg/lib/perl5/5.10.0/File/Copy.pm line 70.
Argument "/usr/pkg/lib/perl5/vendor_perl/5.10.0/CatalystX/CRUD/YUI..." isn't numeric in numeric eq (==) at /usr/pkg/lib/perl5/5.10.0/File/Copy.pm line 70.
which is repeated a number of times, don't know what's up with
that; maybe you have an idea?
Regards,
- Håvard