Skip to content

Commit 9bd6131

Browse files
committed
PostgresNode: initialize $timed_out if passed
Corrects an oversight in 2c83f43 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
1 parent 80b986c commit 9bd6131

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/perl/PostgresNode.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,8 @@ sub psql
10321032
IPC::Run::timeout($params{timeout}, exception => $timeout_exception)
10331033
if (defined($params{timeout}));
10341034

1035+
${$params{timed_out}} = 0 if defined $params{timed_out};
1036+
10351037
# IPC::Run would otherwise append to existing contents:
10361038
$$stdout = "" if ref($stdout);
10371039
$$stderr = "" if ref($stderr);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy