mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +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:
@@ -6,7 +6,7 @@ use PostgreSQL::Test::Utils;
|
||||
use PostgreSQL::Test::Cluster;
|
||||
use Test::More;
|
||||
|
||||
if ($ENV{PG_TEST_EXTRA} !~ /\bload_balance\b/)
|
||||
if (!$ENV{PG_TEST_EXTRA} || $ENV{PG_TEST_EXTRA} !~ /\bload_balance\b/)
|
||||
{
|
||||
plan skip_all =>
|
||||
'Potentially unsafe test load_balance not enabled in PG_TEST_EXTRA';
|
||||
|
Reference in New Issue
Block a user