aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2016-03-28 19:17:06 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2016-03-28 19:17:06 -0300
commit9bd61311bd48ea53b18bfecb9adddfd844acbffa (patch)
tree29f66a45a61d43e5863a2dc153b02455a816756c /src
parent80b986cf528c912f4efc2b0e9f03611f0f15f4df (diff)
downloadpostgresql-9bd61311bd48ea53b18bfecb9adddfd844acbffa.tar.gz
postgresql-9bd61311bd48ea53b18bfecb9adddfd844acbffa.zip
PostgresNode: initialize $timed_out if passed
Corrects an oversight in 2c83f435a3 where the $timed_out reference var isn't initialized; using it would require the caller to initialize it beforehand, which is cumbersome. Author: Craig Ringer
Diffstat (limited to 'src')
-rw-r--r--src/test/perl/PostgresNode.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm
index 1eedd19c8a8..2cbd2887ba0 100644
--- a/src/test/perl/PostgresNode.pm
+++ b/src/test/perl/PostgresNode.pm
@@ -1032,6 +1032,8 @@ sub psql
IPC::Run::timeout($params{timeout}, exception => $timeout_exception)
if (defined($params{timeout}));
+ ${$params{timed_out}} = 0 if defined $params{timed_out};
+
# IPC::Run would otherwise append to existing contents:
$$stdout = "" if ref($stdout);
$$stderr = "" if ref($stderr);