diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/test/authentication/t/003_peer.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/authentication/t/003_peer.pl b/src/test/authentication/t/003_peer.pl index ce8408a4f8c..26c34d05d3c 100644 --- a/src/test/authentication/t/003_peer.pl +++ b/src/test/authentication/t/003_peer.pl @@ -2,13 +2,19 @@ # Copyright (c) 2021-2022, PostgreSQL Global Development Group # Tests for peer authentication and user name map. -# The test is skipped if the platform does not support peer authentication. +# The test is skipped if the platform does not support peer authentication, +# and is only able to run with Unix-domain sockets. use strict; use warnings; use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; use Test::More; +if (!$use_unix_sockets) +{ + plan skip_all => + "authentication tests cannot run without Unix-domain sockets"; +} # Delete pg_hba.conf from the given node, add a new entry to it # and then execute a reload to refresh it. |