Author: turnstep
Date: Thu Jun 19 13:39:29 2008
New Revision: 11438

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

Log:
Handle German variation of "can't run as root" message.
A more generic solution would be ideal, but I can't see one except to 
treat everything as the same error.


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 Jun 19 13:39:29 2008
@@ -262,7 +262,7 @@
                last GETHANDLE if $@;
 
                ## initdb and pg_ctl cannot be run as root, so let's handle that
-               if ($info =~ /run as root/) {
+               if ($info =~ /run as root/ or $info =~ /unprivilegierte/) {
                        if (! -e $test_database_dir) {
                                mkdir $test_database_dir;
                        }

Reply via email to