]> granicus.if.org Git - postgresql/commit
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:02:06 +0000 (14:02 -0500)
commit3a1a422fa57a193f5dda93ea1b7941fdac42ac96
tree96bec4e177e3288bd3146523cb395b07c8447478
parent965956a03305fb8517c584ffffd37515344f4101
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