Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9bd6131

Browse files
committed
PostgresNode: initialize $timed_out if passed
Corrects an oversight in2c83f43 where the $timed_out reference varisn't initialized; using it would require the caller to initialize itbeforehand, which is cumbersome.Author: Craig Ringer
1 parent80b986c commit9bd6131

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}} = 0ifdefined$params{timed_out};
1036+
10351037
# IPC::Run would otherwise append to existing contents:
10361038
$$stdout =""ifref($stdout);
10371039
$$stderr =""ifref($stderr);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp