aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-09-23 22:49:20 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-09-23 23:07:09 +0200
commit73aa5e0cafd0d577fe464ed1d9ac317103f27ea4 (patch)
treec60a2cd7cfcd60681d5d66ce79da53622625d4a5
parent88b0ae15bc099df6192a3b69b853f86fb015339a (diff)
downloadpostgresql-73aa5e0cafd0d577fe464ed1d9ac317103f27ea4.tar.gz
postgresql-73aa5e0cafd0d577fe464ed1d9ac317103f27ea4.zip
Add missing $Test::Builder::Level settings
One of these was accidentally removed by c50624c. The others are added by analogy. Discussion: https://www.postgresql.org/message-id/ae1143fb-455c-c80f-ed66-78d45bd93303@enterprisedb.com
-rw-r--r--src/test/authentication/t/001_password.pl2
-rw-r--r--src/test/authentication/t/002_saslprep.pl2
-rw-r--r--src/test/kerberos/t/001_auth.pl2
-rw-r--r--src/test/ldap/t/001_auth.pl2
4 files changed, 8 insertions, 0 deletions
diff --git a/src/test/authentication/t/001_password.pl b/src/test/authentication/t/001_password.pl
index 9498c18d7d1..16570a4e2cb 100644
--- a/src/test/authentication/t/001_password.pl
+++ b/src/test/authentication/t/001_password.pl
@@ -42,6 +42,8 @@ sub reset_pg_hba
# named parameters are passed to connect_ok/fails as-is.
sub test_role
{
+ local $Test::Builder::Level = $Test::Builder::Level + 1;
+
my ($node, $role, $method, $expected_res, %params) = @_;
my $status_string = 'failed';
$status_string = 'success' if ($expected_res eq 0);
diff --git a/src/test/authentication/t/002_saslprep.pl b/src/test/authentication/t/002_saslprep.pl
index 4799e927dbb..acd379df316 100644
--- a/src/test/authentication/t/002_saslprep.pl
+++ b/src/test/authentication/t/002_saslprep.pl
@@ -36,6 +36,8 @@ sub reset_pg_hba
# Test access for a single role, useful to wrap all tests into one.
sub test_login
{
+ local $Test::Builder::Level = $Test::Builder::Level + 1;
+
my $node = shift;
my $role = shift;
my $password = shift;
diff --git a/src/test/kerberos/t/001_auth.pl b/src/test/kerberos/t/001_auth.pl
index 2c81a26ac73..c484237d078 100644
--- a/src/test/kerberos/t/001_auth.pl
+++ b/src/test/kerberos/t/001_auth.pl
@@ -185,6 +185,8 @@ note "running tests";
# Test connection success or failure, and if success, that query returns true.
sub test_access
{
+ local $Test::Builder::Level = $Test::Builder::Level + 1;
+
my ($node, $role, $query, $expected_res, $gssencmode, $test_name,
@expect_log_msgs)
= @_;
diff --git a/src/test/ldap/t/001_auth.pl b/src/test/ldap/t/001_auth.pl
index 1d1282f8dca..f670bc5e0d5 100644
--- a/src/test/ldap/t/001_auth.pl
+++ b/src/test/ldap/t/001_auth.pl
@@ -166,6 +166,8 @@ note "running tests";
sub test_access
{
+ local $Test::Builder::Level = $Test::Builder::Level + 1;
+
my ($node, $role, $expected_res, $test_name, %params) = @_;
my $connstr = "user=$role";