Author: turnstep
Date: Wed Jan 23 11:10:07 2008
New Revision: 10646
Modified:
DBD-Pg/trunk/t/dbdpg_test_setup.pl
Log:
Account for openbsd default username.
Modified: DBD-Pg/trunk/t/dbdpg_test_setup.pl
==============================================================================
--- DBD-Pg/trunk/t/dbdpg_test_setup.pl (original)
+++ DBD-Pg/trunk/t/dbdpg_test_setup.pl Wed Jan 23 11:10:07 2008
@@ -68,7 +68,10 @@
$helpconnect += 2;
}
$helpconnect += 4;
- $ENV{DBI_USER} = $^O =~ /bsd/ ? '_postgresql' :
'postgres';
+ $ENV{DBI_USER} = $^O =~
+ /openbsd/ ? '_postgresql'
+ : $^O =~ /bsd/i ? 'pgsql'
+ : 'postgres';
eval {
$dbh = DBI->connect($ENV{DBI_DSN},
$ENV{DBI_USER}, $ENV{DBI_PASS},
{RaiseError => 1, PrintError => 0, AutoCommit => 1});