aboutsummaryrefslogtreecommitdiff
path: root/src/test/ldap/t/001_auth.pl
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-12-29 23:54:40 +0100
committerPeter Eisentraut <peter@eisentraut.org>2023-12-29 23:54:40 +0100
commit9d49837d7144e27ad8ea8918acb28f9872cb1585 (patch)
treea995b9b8b789016cb87bf96798be6c6327aab2cd /src/test/ldap/t/001_auth.pl
parent2c321ceaa904eb2722050abd35bf4eaea434c8b5 (diff)
downloadpostgresql-9d49837d7144e27ad8ea8918acb28f9872cb1585.tar.gz
postgresql-9d49837d7144e27ad8ea8918acb28f9872cb1585.zip
Follow-up fixes for "Make all Perl warnings fatal"
Mostly, we need to check whether $ENV{PG_TEST_EXTRA} is set before doing regular expression matches against it.
Diffstat (limited to 'src/test/ldap/t/001_auth.pl')
-rw-r--r--src/test/ldap/t/001_auth.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ldap/t/001_auth.pl b/src/test/ldap/t/001_auth.pl
index 5e569c4db96..2648ccf2215 100644
--- a/src/test/ldap/t/001_auth.pl
+++ b/src/test/ldap/t/001_auth.pl
@@ -18,7 +18,7 @@ if ($ENV{with_ldap} ne 'yes')
{
plan skip_all => 'LDAP not supported by this build';
}
-elsif ($ENV{PG_TEST_EXTRA} !~ /\bldap\b/)
+elsif (!$ENV{PG_TEST_EXTRA} || $ENV{PG_TEST_EXTRA} !~ /\bldap\b/)
{
plan skip_all =>
'Potentially unsafe test LDAP not enabled in PG_TEST_EXTRA';