Author: turnstep
Date: Thu Jul 10 10:17:05 2008
New Revision: 11517

Modified:
   DBD-Pg/trunk/t/dbdpg_test_setup.pl

Log:
Assume an empty response means initdb is simply not on the system.


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  Thu Jul 10 10:17:05 2008
@@ -229,7 +229,12 @@
                last GETHANDLE if $@;
                if (!defined $info or ($info !~ /[EMAIL PROTECTED]/ and $info 
!~ /run as root/)) {
                        if (defined $info) {
-                               $@ = "Bad initdb output: $info";
+                               if ($info !~ /\w/) {
+                                       $@ = 'initdb not found: cannot run full 
tests without a Postgres database';
+                               }
+                               else {
+                                       $@ = "Bad initdb output: $info";
+                               }
                        }
                        else {
                                my $msg = 'Failed to run initdb.';

Reply via email to