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

Commitabcba70

Browse files
committed
Fix perlcritic warnings
1 parent0db2fc9 commitabcba70

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/bin/pgbench/t/001_pgbench_with_server.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,22 +584,22 @@ sub check_pgbench_logs
584584
{
585585
my ($prefix,$nb,$min,$max,$re) =@_;
586586

587-
my@logs =<$prefix.*>;
587+
my@logs =glob"$prefix.*";
588588
ok(@logs ==$nb,"number of log files");
589589
ok(grep(/^$prefix\.\d+(\.\d+)?$/,@logs) ==$nb,"file name format");
590590

591591
my$log_number = 0;
592592
formy$log (sort@logs)
593593
{
594594
eval {
595-
openLOG,$logordie"$@";
596-
my@contents = <LOG>;
595+
openmy$fh,'<',$logordie"$@";
596+
my@contents = <$fh>;
597597
my$clen =@contents;
598598
ok($min <=$clen &&$clen <=$max,
599599
"transaction count for$log ($clen)");
600600
ok(grep($re,@contents) ==$clen,
601601
"transaction format for$prefix");
602-
closeLOGordie"$@";
602+
close$fhordie"$@";
603603
};
604604
}
605605
ok(unlink(@logs),"remove log files");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp