On Jan 15, 2008, at 20:21, Greg Sabino Mullane wrote:
The tarball can be downloaded here:
http://svn.perl.org/modules/DBD-Pg/trunk/DBD-Pg-2.0.0_1.tar.gz
Here's what I get when I run the test suite:
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-signature........skipped: Set the environment variable
TEST_SIGNATURE to enable this test
t/00basic.............ok
t/01connect...........Bailout called. Further testing stopped:
Cannot run tests unless DBI_DSN is defined. See the README file
#
# DBI Version 1.601
# DBD::Pg Version 2.0.0_1
# Perl Version 5.10.0
# OS darwin
# PostgreSQL (compiled) ?
# PostgreSQL (target) ?
# PostgreSQL (reported) ?
# Default port ?
# DBI_DSN ?
# DBI_USER <not set>
# Test schema dbd_pg_testschema
make: *** [test_dynamic] Error 1
I think that DBI_DSN should be optional, just as it has been in the
past, since most folks won't have it set when they install via
CPAN.pm. If you just have it in there for the RC, then fine. So I went
ahead and defined it and got these results:
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-signature........skipped: Set the environment variable
TEST_SIGNATURE to enable this test
t/00basic.............ok
t/01connect...........1/15 #
# DBI Version 1.601
# DBD::Pg Version 2.0.0_1
# Perl Version 5.10.0
# OS darwin
# PostgreSQL (compiled) 80300
# PostgreSQL (target) 80300
# PostgreSQL (reported) PostgreSQL 8.3RC1 on i386-apple-darwin9.1.0,
compiled by GCC i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc.
build 5465)
# Default port 5432
# DBI_DSN dbi:Pg:dbname=try
# DBI_USER <not set>
# Test schema dbd_pg_testschema
t/01connect...........ok
t/01constants.........ok
t/02attribs...........ok
t/03dbmethod..........ok
t/03smethod...........ok
t/04misc..............ok
t/06bytea.............ok
t/07copy..............ok
t/08async.............ok
t/09arrays............1/214
# Failed test 'Array test Test of aclitem type :
'david=ar'::aclitem,'david=r'::aclitem'
# at t/09arrays.t line 452.
# got: '$VAR1 = ['david=ar/postgres','david=r/postgres'];'
# expected: '$VAR1 = ['david=ar/david','david=r/david'];'
# Looks like you failed 1 test of 214.
t/09arrays............ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/214 subtests
t/12placeholders......ok
t/20savepoints........ok
t/99_perlcritic.......skipped: Set the environment variable
TEST_CRITIC to enable this test
t/99_pod..............ok
t/99_yaml.............ok
t/99cleanup...........ok
Test Summary Report
-------------------
t/09arrays.t (Wstat: 256 Tests: 214 Failed: 1)
Failed test: 207
Non-zero exit status: 1
Files=18, Tests=943, 13 wallclock secs ( 0.18 usr 0.07 sys + 1.37
cusr 0.26 csys = 1.88 CPU)
Result: FAIL
Failed 1/18 test programs. 1/943 subtests failed.
make: *** [test_dynamic] Error 255
Looks like it might be a simple ordering problem, eh?
Best,
David