Fix timeouts in PostgresNode::psql
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 1 Mar 2017 18:52:38 +0000 (13:52 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 1 Mar 2017 19:18:51 +0000 (14:18 -0500)
commit231f48796bcf2976f19122b8c6e12f50b463f94e
tree7056f7405545c2a2f58de4a1fa0a1665fb510eeb
parent8f7277dfb5e703a034dbce7b155d998e577a6bc3
Fix timeouts in PostgresNode::psql

Newer Perl or IPC::Run versions default to appending the filename to string
exceptions, e.g. the exception

    psql timed out

 is thrown as

    psql timed out at /usr/share/perl5/vendor_perl/IPC/Run.pm line 2961.

To handle this, match exceptions with !~ rather than ne.

From: Craig Ringer <craig@2ndquadrant.com>
Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
src/test/perl/PostgresNode.pm