Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2
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)