Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitee56c3b

Browse files
committed
ldap tests: Don't run on unsupported operating systems.
The tests currently fail on unsupported operating systems, rather than gettingskipped. The ony reason this doesn't cause problems is that the tests aren'trun by default.Discussion:https://postgr.es/m/721828a7-3043-6803-a85b-da63538db3cc@enterprisedb.com
1 parent2cfde3c commitee56c3b

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

‎src/test/ldap/t/001_auth.pl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@
66
use PostgreSQL::Test::Utils;
77
use PostgreSQL::Test::Cluster;
88
use Test::More;
9+
use Config;
910

10-
if ($ENV{with_ldap}ne'yes')
11-
{
12-
planskip_all=>'LDAP not supported by this build';
13-
}
1411

1512
my ($slapd,$ldap_bin_dir,$ldap_schema_dir);
1613

1714
$ldap_bin_dir =undef;# usually in PATH
1815

19-
if ($^Oeq'darwin' &&-d'/usr/local/opt/openldap')
16+
if ($ENV{with_ldap}ne'yes')
17+
{
18+
planskip_all=>'LDAP not supported by this build';
19+
}
20+
elsif ($^Oeq'darwin' &&-d'/usr/local/opt/openldap')
2021
{
2122
# typical paths for Homebrew
2223
$slapd ='/usr/local/opt/openldap/libexec/slapd';
@@ -39,6 +40,10 @@
3940
$slapd ='/usr/local/libexec/slapd';
4041
$ldap_schema_dir ='/usr/local/etc/openldap/schema';
4142
}
43+
else
44+
{
45+
planskip_all=>"ldap tests not supported on $^O or dependencies not installed";
46+
}
4247

4348
# make your own edits here
4449
#$slapd = '';

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp