diff options
author | Eric Wong <e@80x24.org> | 2019-06-30 00:01:55 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-30 00:01:55 +0000 |
commit | 8ef878ebc6f9f3a337341a3aa42a84fc190032a3 (patch) | |
tree | fe38e193bfce3396243a94b01db479adbe89ab7f /t/nntpd.t | |
parent | f984b8ea898add0f67392723dd38c2ddd73dfa13 (diff) | |
download | public-inbox-8ef878ebc6f9f3a337341a3aa42a84fc190032a3.tar.gz |
Perl prior to 5.22 did not bundle a Net::NNTP (or libnet) capable of handling TLS.
Diffstat (limited to 't/nntpd.t')
-rw-r--r-- | t/nntpd.t | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -106,8 +106,13 @@ EOF is_deeply($list, { $group => [ qw(1 1 n) ] }, 'LIST works'); is_deeply([$n->group($group)], [ qw(0 1 1), $group ], 'GROUP works'); is_deeply($n->listgroup($group), [1], 'listgroup OK'); - ok(!$n->starttls, 'STARTTLS fails when unconfigured'); - is($n->code, 580, 'got 580 code on server w/o TLS'); + + SKIP: { + $n->can('starttls') or + skip('Net::NNTP too old to support STARTTLS', 2); + ok(!$n->starttls, 'STARTTLS fails when unconfigured'); + is($n->code, 580, 'got 580 code on server w/o TLS'); + }; %opts = ( PeerAddr => $host_port, |