Author: turnstep
Date: Tue Jun 10 16:21:23 2008
New Revision: 11403
Modified:
DBD-Pg/trunk/t/dbdpg_test_setup.pl
Log:
Make sure restarts use the new socket dir.
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 Tue Jun 10 16:21:23 2008
@@ -105,8 +105,14 @@
}
else {
warn "Restarting test database $testdsn at $testdir\n";
-
- my $COM = qq{$pg_ctl -l $testdir/dbdpg_test.logfile -D $testdir start};
+ my $option = '';
+ if ($^O !~ /Win32/) {
+ if (! -e "$test_database_dir/data/socket") {
+ mkdir "$test_database_dir/data/socket";
+ }
+ $option = q{-o '-k socket'};
+ }
+ my $COM = qq{$pg_ctl $option -l $testdir/dbdpg_test.logfile -D $testdir start};
if ($su) {
$COM = qq{su -m $su -c "$COM"};
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.