Subject: | t/simple.t fails (if LWP::Protocol::https is not installed?) |
On some systems the test suite fails:
...
# Failed test at t/simple.t line 17.
# 'text/plain'
# doesn't match '(?^:text/html)'
# Failed test at t/simple.t line 18.
# got: undef
# expected: '1'
# Failed test at t/simple.t line 21.
# 'text/plain'
# doesn't match '(?^:text/html)'
# Failed test at t/simple.t line 22.
# got: undef
# expected: '2'
# Failed test at t/simple.t line 25.
# 'text/plain'
# doesn't match '(?^:text/html)'
# Failed test at t/simple.t line 26.
# got: undef
# expected: '1'
# Looks like you failed 6 tests of 6.
t/simple.t ..
Dubious, test returned 6 (wstat 1536, 0x600)
Failed 6/6 subtests
...
On one of these systems the test suite started to pass after installing LWP::Protocol::https.
Just a guess: the test suite uses live calls to search.cpan.org, which is nowadays redirected to https://metacpan.org, so LWP has to be capable to do https. Of course, it would be better if the test diagnostics were clearer (e.g. dumping more of the http response in case of failures or so).