Author: turnstep
Date: Sun Jan 13 09:59:56 2008
New Revision: 10536
Modified:
DBD-Pg/trunk/t/00-signature.t
Log:
Don't declare tests if we might skip_all
Modified: DBD-Pg/trunk/t/00-signature.t
==============================================================================
--- DBD-Pg/trunk/t/00-signature.t (original)
+++ DBD-Pg/trunk/t/00-signature.t Sun Jan 13 09:59:56 2008
@@ -4,13 +4,16 @@
use strict;
use warnings;
-use Test::More tests => 1;
+use Test::More;
select(($|=1,select(STDERR),$|=1)[1]);
if (!$ENV{TEST_SIGNATURE}) {
plan skip_all => 'Set the environment variable TEST_SIGNATURE to enable
this test';
}
-elsif (!eval { require Module::Signature; 1 }) {
+else {
+ plan test => 1;
+}
+if (!eval { require Module::Signature; 1 }) {
fail 'Could not find Module::Signature';
}
elsif ( !-e 'SIGNATURE' ) {