petdance/scratch — Issue #875: Pg NCI Test Makes Unportable Connection
Author: petdance
Created: 2011-11-14 06:13:50+00:00
State: open
Labels: bug, Pri-normal, Sev-medium, testing

t/library/pg.t fails pretty miserably on this line:
con = cl.'connectdb'('') # assume table = user is present

I have PostgreSQL installed, but this assumption doesn't work for me. I've
checked in a skip for the remaining tests in this case, as there's no point
in running them. (They cause NCI assertion failures, as the NULL connection
isn't what NCI expects to pass to the Pg functions.)

This test needs another approach to run on multiple platforms successfully.
Setting an environment variable for user name and password might work better.

-- c

Originally http://trac.parrot.org/parrot/ticket/1162 by @chromatic