Subject: | Test::PostgreSQL doesn't work out of the box as root any more |
The releases this year don't appear to work when run as root. pg_ctl doesn't seem to like being run directly as root. If I set pg_ctl to '' when initialising Test::PostgreSQL it does work as it used to.
t/00-base.t .......... ok
t/01-raii.t .......... pg_ctl: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.
t/01-raii.t .......... skipped: /usr/lib/postgresql/9.4/bin/pg_ctl init -s -D /tmp/pgtest.L08S5/data -o -U postgres -A trust failed:256 at /root/.cpanm/work/1455369474.1300/Test-PostgreSQL-1.20/blib/lib/Test/PostgreSQL.pm line 451.
t/02-multi.t ......... pg_ctl: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.
t/02-multi.t ......... skipped: /usr/lib/postgresql/9.4/bin/pg_ctl init -s -D /tmp/pgtest.TdkqV/data -o -U postgres -A trust failed:256 at /root/.cpanm/work/1455369474.1300/Test-PostgreSQL-1.20/blib/lib/Test/PostgreSQL.pm line 451.
t/04-multiprocess.t .. pg_ctl: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.
t/04-multiprocess.t .. skipped: /usr/lib/postgresql/9.4/bin/pg_ctl init -s -D /tmp/pgtest.qu9me/data -o -U postgres -A trust failed:256 at /root/.cpanm/work/1455369474.1300/Test-PostgreSQL-1.20/blib/lib/Test/PostgreSQL.pm line 451.
t/deadlock.t ......... pg_ctl: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.
t/deadlock.t ......... skipped: /usr/lib/postgresql/9.4/bin/pg_ctl init -s -D /tmp/pgtest.tY50R/data -o -U postgres -A trust failed:256 at /root/.cpanm/work/1455369474.1300/Test-PostgreSQL-1.20/blib/lib/Test/PostgreSQL.pm line 451.
Note: this is a duplicate of the issue on github, I just wasn't sure which bug tracker you prefer to use.