Skip Menu |

This queue is for tickets about the pgsql_perl5 CPAN distribution.

Report information
The Basics
Id: 38799
Status: new
Priority: 0/
Queue: pgsql_perl5

People
Owner: Nobody in particular
Requestors: dlambert [...] bmtcarhaul.com
Cc:
AdminCc:

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



Subject: Tests fail on Gentoo
Date: Thu, 28 Aug 2008 11:55:56 -0400
To: bug-pgsql_perl5 [...] rt.cpan.org
From: David Lee Lambert <dlambert [...] bmtcarhaul.com>
Trying to build the module from CPAN, it refuses to install because the tests fail: Running make test PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 "-Iblib/lib" "-Iblib/arch" test.pl Can't call method "errorMessage" on an undefined value at test.pl line 99. make: *** [test_dynamic] Error 255 /usr/bin/make test -- NOT OK I created the "pgperltest" database and tried to run the tests again as the "postgres" user, but still no luck: postgres@[...] /root/.cpan/build/pgsql_perl5-1.9.0 $ make test PERL_DL_NONLAZY=1 /usr/bin/perl5.8.8 "-Iblib/lib" "-Iblib/arch" test.pl Can't call method "errorMessage" on an undefined value at test.pl line 99. make: *** [test_dynamic] Error 255 Perl version: 5.8.8 (Gentoo package dev-lang/perl-5.8.8-r5) Postgres version: 8.0 (Gentoo package dev-db/postgresql-8.0.12) -- David L. Lambert Software Developer, Precision Motor Transport Group, LLC Work phone 517-349-3011 x215 Cell phone 586-873-8813
Subject: Re: [rt.cpan.org #38799] Tests fail on Gentoo
Date: Thu, 28 Aug 2008 16:01:52 -0400
To: bug-pgsql_perl5 [...] rt.cpan.org
From: David Lee Lambert <dlambert [...] bmtcarhaul.com>
The same problem appears on Ubuntu Hardy (also perl 5.8.8, postgres 8.0; libpq-fe is from postgres 8.3). The attached patch gets all tests to run. I see four issues that were causing problems: 1. If the test of Pg::conndefaults fails, there is no $conn; so it makes no sense to look at its attributes 2. "psql dbname" works just fine on my box, even though PGDATABASE and PGUSER are not defined 3. CREATE has been changed to CREATE DATABASE in the relevant message 4. The case of "Database" has been changed -- David L. Lambert Software Developer, Precision Motor Transport Group, LLC Work phone 517-349-3011 x215 Cell phone 586-873-8813

Message body is not shown because sender requested not to inline it.