]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/nntpd-tls.t
t/nntpd*.t: require IO::Socket::SSL 2.007 for Net::NNTP tests
[public-inbox.git] / t / nntpd-tls.t
index 4cf53daad8cd0325fdb7e9555ab56bc7a19906d4..49b31221f02c6cf0ec19af788010c864ba857984 100644 (file)
@@ -13,6 +13,8 @@ foreach my $mod (qw(DBD::SQLite IO::Socket::SSL Net::NNTP IO::Poll)) {
 }
 Net::NNTP->can('starttls') or
        plan skip_all => 'Net::NNTP does not support TLS';
+IO::Socket::SSL->VERSION(2.007) or
+       plan skip_all => 'IO::Socket::SSL <2.007 not supported by Net::NNTP';
 
 my $cert = 'certs/server-cert.pem';
 my $key = 'certs/server-key.pem';