mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	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.
			
			
This commit is contained in:
		@@ -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';
 | 
			
		||||
 
 | 
			
		||||
@@ -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';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user