summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2023-03-01 14:53:51 +0000
committerTomas Vondra2023-03-01 14:58:25 +0000
commit34ce11437497fbbdd44f26d6f1cc9d40f84da679 (patch)
tree5840f0712ee4521dd76ada17e68622b1ab2fa422
parentd2f44cc36e60b5490e56fd2aa7d3381764a38d36 (diff)
Fix condition in pg_dump TAP test
The condition checking compression support was parenthesized incorrectly after adding lz4, so fix that. Reported-by: Justin Pryzby Discussion: https://postgr.es/m/[email protected]
-rw-r--r--src/bin/pg_dump/t/002_pg_dump.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_dump/t/002_pg_dump.pl b/src/bin/pg_dump/t/002_pg_dump.pl
index 72b19ee6cd..187e4b8d07 100644
--- a/src/bin/pg_dump/t/002_pg_dump.pl
+++ b/src/bin/pg_dump/t/002_pg_dump.pl
@@ -4248,10 +4248,10 @@ foreach my $run (sort keys %pgdump_runs)
my $test_key = $run;
my $run_db = 'postgres';
- # Skip command-level tests for gzip if there is no support for it.
+ # Skip command-level tests for gzip/lz4 if there is no support for it.
if ($pgdump_runs{$run}->{compile_option} &&
- ($pgdump_runs{$run}->{compile_option} eq 'gzip' && !$supports_gzip) ||
- ($pgdump_runs{$run}->{compile_option} eq 'lz4' && !$supports_lz4))
+ (($pgdump_runs{$run}->{compile_option} eq 'gzip' && !$supports_gzip) ||
+ ($pgdump_runs{$run}->{compile_option} eq 'lz4' && !$supports_lz4)))
{
note "$run: skipped due to no $pgdump_runs{$run}->{compile_option} support";
next;