pgbackrest.git / summary / log / commit / refs
commit 119c089cccccd773bc8eb517f82ec6c36e5fb37d
Author: David Steele <david@pgbackrest.org>
Date: Thu Feb 19 15:33:05 2026 +0000
Update uncrustify to recognize .c.inc files.
But ignore .auto.c.inc and .vendor.c.inc files.
test/test.pl | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/test/test.pl b/test/test.pl
index 7686d2f54..1e5c3d3c0 100755
--- a/test/test.pl
+++ b/test/test.pl
@@ -542,7 +542,7 @@ eval
foreach my $strFile (sort(keys(%{$hManifest})))
{
# Skip non-C files
- next if $hManifest->{$strFile}{type} ne 'f' || ($strFile !~ /\.c$/ && $strFile !~ /\.h$/);
+ next if $hManifest->{$strFile}{type} ne 'f' || ($strFile !~ /\.c.inc$/ && $strFile !~ /\.c$/ && $strFile !~ /\.h$/);
# Skip files that do are not version controlled
next if !defined($hRepoManifest->{$strFile});
@@ -551,9 +551,9 @@ eval
next if
# Does not format correctly because it is a template
$strFile eq 'test/src/test.c' ||
- # Contains code copied directly from PostgreSQL
- $strFile eq 'src/postgres/interface/static.vendor.h' ||
- $strFile eq 'src/postgres/interface/version.vendor.h';
+ # Skip vendorized and automatically generated files
+ $strFile =~ /\.vendor\.h$/ ||
+ $strFile =~ /\.(vendor|auto)\.c\.inc$/;
$strCommand .= " ${strBackRestBase}/${strFile}";
}
[parent: 1ce2522e359e]