Opened 8 years ago

Closed 8 years ago

#6595 closed defect (fixed)

Perl bindings tests fail if PG:dbname=autotest isn't available

Reported by: Even Rouault Owned by: Ari Jolma
Priority: normal Milestone:
Component: PerlBindings Version: unspecified
Severity: normal Keywords:


I had to disable PostgreSQL in the trunk_trusty CI branch (at least for now), and since then I get the following failure:

t/00-measures-04.t .. 1/? PQconnectdb failed.
FATAL:  database "autotest" does not exist
 at /home/travis/build/rouault/gdal_coverage/gdal/swig/perl/blib/lib/Geo/ line 1364.
	Geo::GDAL::OpenEx('PG:dbname=autotest', 'ARRAY(0x24b9b80)') called at /home/travis/build/rouault/gdal_coverage/gdal/swig/perl/blib/lib/Geo/ line 927
	Geo::OGR::Open('PG:dbname=autotest', 1) called at t/00-measures-04.t line 50
# Looks like your test exited with 255 just after 1.

Would it be possible to modify the test so that it skips gracefully if opening pg:dbname=autotest fails ?

Change History (2)

comment:1 by Ari Jolma, 8 years ago

Modified in r34727.

comment:2 by Even Rouault, 8 years ago

Resolution: fixed
Status: newclosed


Note: See TracTickets for help on using tickets.