Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9e492d6

Browse files
committed
Skip TAP test for peer authentication if there are no unix-domain sockets
Peer connections require support for local connections to work, but the test missed the same check as the other ones in this suite. The buildfarm does not run the authentication tests on Windows, and, more surprisingly, the CI with meson was already able to skip it. Author: Anton A. Melnikov Discussion: https://postgr.es/m/28b9d685-9590-45b1-fe87-358d61c6950a@inbox.ru
1 parent d13b684 commit 9e492d6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/test/authentication/t/003_peer.pl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22
# Copyright (c) 2021-2022, PostgreSQL Global Development Group
33

44
# Tests for peer authentication and user name map.
5-
# The test is skipped if the platform does not support peer authentication.
5+
# The test is skipped if the platform does not support peer authentication,
6+
# and is only able to run with Unix-domain sockets.
67

78
use strict;
89
use warnings;
910
use PostgreSQL::Test::Cluster;
1011
use PostgreSQL::Test::Utils;
1112
use Test::More;
13+
if (!$use_unix_sockets)
14+
{
15+
plan skip_all =>
16+
"authentication tests cannot run without Unix-domain sockets";
17+
}
1218

1319
# Delete pg_hba.conf from the given node, add a new entry to it
1420
# and then execute a reload to refresh it.

0 commit comments

Comments
 (0)