1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-24 00:23:06 +03:00

Run perltidy

A follow-up patch will adjust the TAP tests to follow a more-structured
format for option lists in commands, that perltidy is able to cope
better with.  Putting the tree first in a clean state makes the next
change a bit easier.  v20230309 has been used.

Author: Dagfinn Ilmari Mannsåker
Discussion: https://postgr.es/m/87jzc46d8u.fsf@wibble.ilmari.org
This commit is contained in:
Michael Paquier
2025-01-22 10:13:59 +09:00
parent 4907ba304c
commit be31ac2519
14 changed files with 63 additions and 46 deletions

View File

@@ -62,8 +62,9 @@ sub process_file
# skip over commit links because we will add them below
next
if (!$in_comment &&
m{^\s*<ulink url="&commit_baseurl;[[:xdigit:]]+">&sect;</ulink>\s*$});
if (!$in_comment
&& m{^\s*<ulink url="&commit_baseurl;[[:xdigit:]]+">&sect;</ulink>\s*$}
);
if ($in_comment && m/\[([[:xdigit:]]+)\]/)
{
@@ -73,10 +74,10 @@ sub process_file
(!m/^Branch:/) && push(@hashes, $hash);
# minor release item
m/^Branch:/ &&
defined($major_version) &&
m/_${major_version}_/ &&
push(@hashes, $hash);
m/^Branch:/
&& defined($major_version)
&& m/_${major_version}_/
&& push(@hashes, $hash);
}
if (!$in_comment && m{</para>})

View File

@@ -49,7 +49,8 @@ while (my $test_src = glob("$src_dir/tests/*.0"))
],
"pg_bsd_indent succeeds on $test");
# check result matches, adding any diff to $diffs_file
my $result = run_log([ 'diff', @diffopts, "$test_src.stdout", "$test.out" ],
my $result =
run_log([ 'diff', @diffopts, "$test_src.stdout", "$test.out" ],
'>>', $diffs_file);
ok($result, "pg_bsd_indent output matches for $test");
}