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

Commit458a124

Browse files
committed
Fix under-quoted filename pattern in pgbench TAP test.
Avoids issues if build directory's pathname contains regexmetacharacters.Raúl Marín RodríguezDiscussion:https://postgr.es/m/CAM6_UM6dGdU39PKAC24T+HD9ouy0jLN9vH6163K8QEEzr__iZw@mail.gmail.com
1 parent69bcd71 commit458a124

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,9 +879,10 @@ sub check_pgbench_logs
879879

880880
my ($prefix,$nb,$min,$max,$re) =@_;
881881

882-
my@logs =glob"$prefix.*";
882+
my$qprefix =quotemeta($prefix);
883+
my@logs =glob"$qprefix.*";
883884
ok(@logs ==$nb,"number of log files");
884-
ok(grep(/^$prefix\.\d+(\.\d+)?$/,@logs) ==$nb,"file name format");
885+
ok(grep(/^$qprefix\.\d+(\.\d+)?$/,@logs) ==$nb,"file name format");
885886

886887
my$log_number = 0;
887888
formy$log (sort@logs)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp