From: Michael G. Schwern Date: Mon, 28 Jul 2003 02:14:19 +0000 (-0700) Subject: CPAN/t/signature.t noisy X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6c670c7ed4428d6d96ff225a8531e769e0c09375;p=p5sagit%2Fp5-mst-13.2.git CPAN/t/signature.t noisy Message-ID: <20030728091419.GG21044@windhund.schwern.org> p4raw-id: //depot/perl@20257 --- diff --git a/lib/CPAN/t/signature.t b/lib/CPAN/t/signature.t index 670a1aa..de27935 100644 --- a/lib/CPAN/t/signature.t +++ b/lib/CPAN/t/signature.t @@ -3,14 +3,12 @@ use strict; print "1..1\n"; -if (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) { - print "ok 1 # skip - Cannot connect to the keyserver"; -} -elsif (!eval { require Module::Signature; 1 }) { - warn "# Next time around, consider install Module::Signature,\n". - "# so you can verify the integrity of this distribution.\n"; +if (!eval { require Module::Signature; 1 }) { print "ok 1 # skip - Module::Signature not installed\n"; } +elsif (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) { + print "ok 1 # skip - Cannot connect to the keyserver"; +} else { (Module::Signature::verify() == Module::Signature::SIGNATURE_OK()) or print "not ";