Subject: | Net::LDAP::Server Internal Changes |
Net::LDAP::Server no longer has $self->{socket}
Current building fails tests.
CPAN.pm: Going to build K/KA/KARMAN/Net-LDAP-Server-Test-0.10.tar.gz
cp lib/Net/LDAP/Server/Test.pm blib/lib/Net/LDAP/Server/Test.pm
Manifying blib/man3/Net::LDAP::Server::Test.3pm
KARMAN/Net-LDAP-Server-Test-0.10.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ....... 1/1
# Failed test 'use Net::LDAP::Server::Test;'
# at t/00-load.t line 6.
# Tried to use 'Net::LDAP::Server::Test'.
# Error: No such class field "socket" in variable $self of type
Net::LDAP::Server at
/root/.cpan/build/Net-LDAP-Server-Test-0.10-evKL8M/blib/lib/Net/LDAP/Server/Test.pm
line 647, <DATA> line 522.
# Compilation failed in require at (eval 4) line 2, <DATA> line 522.
# BEGIN failed--compilation aborted at (eval 4) line 2, <DATA> line 522.
Use of uninitialized value $Net::LDAP::Server::Test::VERSION in
concatenation (.) or string at t/00-load.t line 9, <DATA> line 522.
# Testing Net::LDAP::Server::Test , Perl 5.012003, /usr/bin/perl
# Looks like you failed 1 test of 1.
t/00-load.t ....... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/01-ldap.t ....... No such class field "socket" in variable $self of
type Net::LDAP::Server at
/root/.cpan/build/Net-LDAP-Server-Test-0.10-evKL8M/blib/lib/Net/LDAP/Server/Test.pm
line 647, <DATA> line 522.
Compilation failed in require at t/01-ldap.t line 8, <DATA> line 522.
BEGIN failed--compilation aborted at t/01-ldap.t line 8, <DATA> line 522.
# Looks like your test exited with 255 before it could output anything.
t/01-ldap.t ....... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 12/12 subtests
t/02-ad.t ......... No such class field "socket" in variable $self of
type Net::LDAP::Server at
/root/.cpan/build/Net-LDAP-Server-Test-0.10-evKL8M/blib/lib/Net/LDAP/Server/Test.pm
line 647, <DATA> line 522.
Compilation failed in require at t/02-ad.t line 8, <DATA> line 522.
BEGIN failed--compilation aborted at t/02-ad.t line 8, <DATA> line 522.
# Looks like your test exited with 255 before it could output anything.
t/02-ad.t ......... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 9/9 subtests
t/boilerplate.t ... ok
t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.04 required for
testing POD coverage
t/pod.t ........... skipped: Test::Pod 1.14 required for testing POD
Test Summary Report
-------------------
t/00-load.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
t/01-ldap.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 12 tests but ran 0.
t/02-ad.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 9 tests but ran 0.
Files=6, Tests=4, 0 wallclock secs ( 0.04 usr 0.02 sys + 0.50 cusr
0.06 csys = 0.62 CPU)
Result: FAIL
Failed 3/6 test programs. 1/4 subtests failed.
make: *** [test_dynamic] Error 255
KARMAN/Net-LDAP-Server-Test-0.10.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports KARMAN/Net-LDAP-Server-Test-0.10.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
KARMAN/Net-LDAP-Server-Test-0.10.tar.gz : make_test NO
Unsure of a better solution.
See attached patch.
Subject: | net-ldap-server-test.patch |
diff -Naur Net-LDAP-Server-Test-0.10-dj0Ob8/lib/Net/LDAP/Server/Test.pm Net-LDAP-Server-Test-0.10/lib/Net/LDAP/Server/Test.pm
--- Net-LDAP-Server-Test-0.10-dj0Ob8/lib/Net/LDAP/Server/Test.pm 2010-06-15 20:09:12.000000000 -0500
+++ Net-LDAP-Server-Test-0.10/lib/Net/LDAP/Server/Test.pm 2011-05-31 12:02:13.251836435 -0500
@@ -644,7 +644,7 @@
# override the default behaviour to support controls
sub handle {
my Net::LDAP::Server $self = shift;
- my $socket = $self->{socket};
+ my $socket = $self->{in};
asn_read( $socket, my $pdu );