Subject: | deprecated LIBSSH2_APINO in libssh2 0.16+ causes test suite failure |
The current error is as follows:
# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Net-SSH2....ok 1/72
# Failed test 'API date yyyymmddhhmm'
# in t/Net-SSH2.t at line 33.
# 'LIBSSH2_APINO'
# doesn't match '(?-xism:^\d{12}$)'
t/Net-SSH2....NOK 8# Looks like you failed 1 test of 72.
t/Net-SSH2....dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 8
Failed 1/72 tests, 98.61% okay (less 61 skipped tests: 10 okay,
13.89%)
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/Net-SSH2.t 1 256 72 1 8
61 subtests skipped.
Failed 1/1 test scripts. 1/72 subtests failed.
Files=1, Tests=72, 1 wallclock secs ( 0.16 cusr + 0.08 csys = 0.24 CPU)
According to the libssh2 documentation:
2007-08-03 Daniel Stenberg
* include/libssh2.h: LIBSSH2_APINO is now gone, the sooner the
better. This is gonna cause some pains in apps relying on it, but it
is broken by design and we should not rely on it at all. Go for the
LIBSSH2_VERSION_* defines instead if you need to check for versions.